Loading packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java +4 −13 Original line number Diff line number Diff line Loading @@ -792,10 +792,8 @@ public class ApplicationsState { // Rebuilding of app list. Synchronized on mRebuildSync. final Object mRebuildSync = new Object(); boolean mRebuildRequested; boolean mRebuildAsync; AppFilter mRebuildFilter; Comparator<AppEntry> mRebuildComparator; ArrayList<AppEntry> mRebuildResult; ArrayList<AppEntry> mLastAppList; boolean mRebuildForeground; Loading Loading @@ -901,11 +899,9 @@ public class ApplicationsState { synchronized (mRebuildingSessions) { mRebuildingSessions.add(this); mRebuildRequested = true; mRebuildAsync = true; mRebuildFilter = filter; mRebuildComparator = comparator; mRebuildForeground = foreground; mRebuildResult = null; if (!mBackgroundHandler.hasMessages(BackgroundHandler.MSG_REBUILD_LIST)) { Message msg = mBackgroundHandler.obtainMessage( BackgroundHandler.MSG_REBUILD_LIST); Loading Loading @@ -985,10 +981,6 @@ public class ApplicationsState { synchronized (mRebuildSync) { if (!mRebuildRequested) { mLastAppList = filteredApps; if (!mRebuildAsync) { mRebuildResult = filteredApps; mRebuildSync.notifyAll(); } else { if (!mMainHandler.hasMessages(MainHandler.MSG_REBUILD_COMPLETE, this)) { Message msg = mMainHandler.obtainMessage( MainHandler.MSG_REBUILD_COMPLETE, this); Loading @@ -996,7 +988,6 @@ public class ApplicationsState { } } } } Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); } Loading Loading
packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java +4 −13 Original line number Diff line number Diff line Loading @@ -792,10 +792,8 @@ public class ApplicationsState { // Rebuilding of app list. Synchronized on mRebuildSync. final Object mRebuildSync = new Object(); boolean mRebuildRequested; boolean mRebuildAsync; AppFilter mRebuildFilter; Comparator<AppEntry> mRebuildComparator; ArrayList<AppEntry> mRebuildResult; ArrayList<AppEntry> mLastAppList; boolean mRebuildForeground; Loading Loading @@ -901,11 +899,9 @@ public class ApplicationsState { synchronized (mRebuildingSessions) { mRebuildingSessions.add(this); mRebuildRequested = true; mRebuildAsync = true; mRebuildFilter = filter; mRebuildComparator = comparator; mRebuildForeground = foreground; mRebuildResult = null; if (!mBackgroundHandler.hasMessages(BackgroundHandler.MSG_REBUILD_LIST)) { Message msg = mBackgroundHandler.obtainMessage( BackgroundHandler.MSG_REBUILD_LIST); Loading Loading @@ -985,10 +981,6 @@ public class ApplicationsState { synchronized (mRebuildSync) { if (!mRebuildRequested) { mLastAppList = filteredApps; if (!mRebuildAsync) { mRebuildResult = filteredApps; mRebuildSync.notifyAll(); } else { if (!mMainHandler.hasMessages(MainHandler.MSG_REBUILD_COMPLETE, this)) { Message msg = mMainHandler.obtainMessage( MainHandler.MSG_REBUILD_COMPLETE, this); Loading @@ -996,7 +988,6 @@ public class ApplicationsState { } } } } Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); } Loading