commit | e0bf5e71555eab6feec237d8988cc849833cf038 | [log] [tgz] |
---|---|---|
author | Rick Yiu <rickyiu@google.com> | Tue Apr 30 23:02:23 2019 +0800 |
committer | Rick Yiu <rickyiu@google.com> | Thu May 02 07:07:57 2019 +0000 |
tree | b57621bb6594f45b353a597cb2eacb360cf80479 | |
parent | 7ba6a5724683089bed7cbe47ea8c722e80aad575 [diff] |
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
diff --git a/packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java b/packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java index e02709e..e0c6a3e 100644 --- a/packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java +++ b/packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java
@@ -198,8 +198,7 @@ mEntriesMap.put(userId, new HashMap<>()); } - mThread = new HandlerThread("ApplicationsState.Loader", - Process.THREAD_PRIORITY_BACKGROUND); + mThread = new HandlerThread("ApplicationsState.Loader"); mThread.start(); mBackgroundHandler = new BackgroundHandler(mThread.getLooper());