Skip to content

Commit e57922c

Browse files
committed
Fix bug: swiped apps in Recents come back on rotate
Bug: 7409398
1 parent 9a0fbd4 commit e57922c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ public ArrayList<TaskDescription> getLoadedTasks() {
138138
return mLoadedTasks;
139139
}
140140

141+
public void remove(TaskDescription td) {
142+
mLoadedTasks.remove(td);
143+
}
144+
141145
public boolean isFirstScreenful() {
142146
return mFirstScreenful;
143147
}

packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ public void handleSwipe(View view) {
689689
}
690690
if (DEBUG) Log.v(TAG, "Jettison " + ad.getLabel());
691691
mRecentTaskDescriptions.remove(ad);
692+
mRecentTasksLoader.remove(ad);
692693

693694
// Handled by widget containers to enable LayoutTransitions properly
694695
// mListAdapter.notifyDataSetChanged();

0 commit comments

Comments
 (0)