Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0bf5e71 authored by Rick Yiu's avatar Rick Yiu
Browse files

Do not set thread priority to background for ApplicationsState.Loader

ApplicationsState.Loader will do UI sensitive IO, so do not set its
thread priority to background.

Bug: 131214885
Test: priority kept in top-app
Change-Id: I305a59e82e330f530aed7fbf9b9ba244ee073340
parent 7ba6a572
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -198,8 +198,7 @@ public class ApplicationsState {
            mEntriesMap.put(userId, new HashMap<>());
            mEntriesMap.put(userId, new HashMap<>());
        }
        }


        mThread = new HandlerThread("ApplicationsState.Loader",
        mThread = new HandlerThread("ApplicationsState.Loader");
                Process.THREAD_PRIORITY_BACKGROUND);
        mThread.start();
        mThread.start();
        mBackgroundHandler = new BackgroundHandler(mThread.getLooper());
        mBackgroundHandler = new BackgroundHandler(mThread.getLooper());