Loading packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java +2 −4 Original line number Original line Diff line number Diff line Loading @@ -185,7 +185,9 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener mHeaderBar = (TaskViewHeader) inflater.inflate(R.layout.recents_task_view_header, mHeaderBar = (TaskViewHeader) inflater.inflate(R.layout.recents_task_view_header, null, false); null, false); reloadResources(); reloadResources(); } public void onBootCompleted() { // When we start, preload the data associated with the previous recent tasks. // When we start, preload the data associated with the previous recent tasks. // We can use a new plan since the caches will be the same. // We can use a new plan since the caches will be the same. RecentsTaskLoader loader = Recents.getTaskLoader(); RecentsTaskLoader loader = Recents.getTaskLoader(); Loading @@ -198,10 +200,6 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener loader.loadTasks(mContext, plan, launchOpts); loader.loadTasks(mContext, plan, launchOpts); } } public void onBootCompleted() { // Do nothing } public void onConfigurationChanged() { public void onConfigurationChanged() { reloadResources(); reloadResources(); mDummyStackView.reloadOnConfigurationChange(); mDummyStackView.reloadOnConfigurationChange(); Loading packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java +6 −2 Original line number Original line Diff line number Diff line Loading @@ -315,8 +315,12 @@ public class SystemServicesProxy { if (includeFrontMostExcludedTask) { if (includeFrontMostExcludedTask) { flags |= ActivityManager.RECENT_WITH_EXCLUDED; flags |= ActivityManager.RECENT_WITH_EXCLUDED; } } List<ActivityManager.RecentTaskInfo> tasks = mAm.getRecentTasksForUser(numTasksToQuery, List<ActivityManager.RecentTaskInfo> tasks = null; flags, userId); try { tasks = mAm.getRecentTasksForUser(numTasksToQuery, flags, userId); } catch (Exception e) { Log.e(TAG, "Failed to get recent tasks", e); } // Break early if we can't get a valid set of tasks // Break early if we can't get a valid set of tasks if (tasks == null) { if (tasks == null) { Loading Loading
packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java +2 −4 Original line number Original line Diff line number Diff line Loading @@ -185,7 +185,9 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener mHeaderBar = (TaskViewHeader) inflater.inflate(R.layout.recents_task_view_header, mHeaderBar = (TaskViewHeader) inflater.inflate(R.layout.recents_task_view_header, null, false); null, false); reloadResources(); reloadResources(); } public void onBootCompleted() { // When we start, preload the data associated with the previous recent tasks. // When we start, preload the data associated with the previous recent tasks. // We can use a new plan since the caches will be the same. // We can use a new plan since the caches will be the same. RecentsTaskLoader loader = Recents.getTaskLoader(); RecentsTaskLoader loader = Recents.getTaskLoader(); Loading @@ -198,10 +200,6 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener loader.loadTasks(mContext, plan, launchOpts); loader.loadTasks(mContext, plan, launchOpts); } } public void onBootCompleted() { // Do nothing } public void onConfigurationChanged() { public void onConfigurationChanged() { reloadResources(); reloadResources(); mDummyStackView.reloadOnConfigurationChange(); mDummyStackView.reloadOnConfigurationChange(); Loading
packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java +6 −2 Original line number Original line Diff line number Diff line Loading @@ -315,8 +315,12 @@ public class SystemServicesProxy { if (includeFrontMostExcludedTask) { if (includeFrontMostExcludedTask) { flags |= ActivityManager.RECENT_WITH_EXCLUDED; flags |= ActivityManager.RECENT_WITH_EXCLUDED; } } List<ActivityManager.RecentTaskInfo> tasks = mAm.getRecentTasksForUser(numTasksToQuery, List<ActivityManager.RecentTaskInfo> tasks = null; flags, userId); try { tasks = mAm.getRecentTasksForUser(numTasksToQuery, flags, userId); } catch (Exception e) { Log.e(TAG, "Failed to get recent tasks", e); } // Break early if we can't get a valid set of tasks // Break early if we can't get a valid set of tasks if (tasks == null) { if (tasks == null) { Loading