Loading packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java +1 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ public class RecentsActivity extends Activity { if (mRecentsPanel != null) { final SystemUIApplication app = (SystemUIApplication) getApplication(); final RecentTasksLoader recentTasksLoader = app.getRecentTasksLoader(); TaskDescription firstTask = recentTasksLoader.getFirstTask(); TaskDescription firstTask = mRecentsPanel.getBottomTask(); if (firstTask != null && mRecentsPanel.simulateClick(firstTask)) { // recents panel will take care of calling show(false); return; Loading packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +18 −0 Original line number Diff line number Diff line Loading @@ -488,6 +488,24 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener showIfReady(); } public TaskDescription getBottomTask() { if (mRecentsContainer != null) { ViewGroup container = mRecentsContainer; if (container instanceof RecentsScrollView) { container = (ViewGroup) container.findViewById( R.id.recents_linear_layout); } if (container.getChildCount() > 0) { View v = container.getChildAt(container.getChildCount() - 1); if (v.getTag() instanceof ViewHolder) { ViewHolder h = (ViewHolder)v.getTag(); return h.taskDescription; } } } return null; } public void clearRecentTasksList() { // Clear memory used by screenshots if (mRecentTaskDescriptions != null) { Loading Loading
packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java +1 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ public class RecentsActivity extends Activity { if (mRecentsPanel != null) { final SystemUIApplication app = (SystemUIApplication) getApplication(); final RecentTasksLoader recentTasksLoader = app.getRecentTasksLoader(); TaskDescription firstTask = recentTasksLoader.getFirstTask(); TaskDescription firstTask = mRecentsPanel.getBottomTask(); if (firstTask != null && mRecentsPanel.simulateClick(firstTask)) { // recents panel will take care of calling show(false); return; Loading
packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +18 −0 Original line number Diff line number Diff line Loading @@ -488,6 +488,24 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener showIfReady(); } public TaskDescription getBottomTask() { if (mRecentsContainer != null) { ViewGroup container = mRecentsContainer; if (container instanceof RecentsScrollView) { container = (ViewGroup) container.findViewById( R.id.recents_linear_layout); } if (container.getChildCount() > 0) { View v = container.getChildAt(container.getChildCount() - 1); if (v.getTag() instanceof ViewHolder) { ViewHolder h = (ViewHolder)v.getTag(); return h.taskDescription; } } } return null; } public void clearRecentTasksList() { // Clear memory used by screenshots if (mRecentTaskDescriptions != null) { Loading