Skip to content

Commit 09a526f

Browse files
mikejurkaAndroid (Google) Code Review
authored andcommitted
Merge "Fix bug: swiped apps in Recents come back on rotate" into jb-mr1.1-dev
2 parents 4df6c62 + e57922c commit 09a526f

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
@@ -703,6 +703,7 @@ public void handleSwipe(View view) {
703703
}
704704
if (DEBUG) Log.v(TAG, "Jettison " + ad.getLabel());
705705
mRecentTaskDescriptions.remove(ad);
706+
mRecentTasksLoader.remove(ad);
706707

707708
// Handled by widget containers to enable LayoutTransitions properly
708709
// mListAdapter.notifyDataSetChanged();

0 commit comments

Comments
 (0)