summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2012-11-26 16:05:12 -0800
committerMichael Jurka <mikejurka@google.com>2012-11-26 16:05:27 -0800
commite57922cc7d96620cab0c296e93b2b9b3a471c331 (patch)
treeb21dc075b1c2961ae0f48669d9fca589481e9543 /packages
parent9a0fbd4c6da2905504defdba9843d3fcbe0c1367 (diff)
downloadframeworks_base-e57922cc7d96620cab0c296e93b2b9b3a471c331.zip
frameworks_base-e57922cc7d96620cab0c296e93b2b9b3a471c331.tar.gz
frameworks_base-e57922cc7d96620cab0c296e93b2b9b3a471c331.tar.bz2
Fix bug: swiped apps in Recents come back on rotate
Bug: 7409398
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java4
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java1
2 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java b/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java
index 4338fa0..9281c75 100644
--- a/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java
+++ b/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java
@@ -138,6 +138,10 @@ public class RecentTasksLoader implements View.OnTouchListener {
return mLoadedTasks;
}
+ public void remove(TaskDescription td) {
+ mLoadedTasks.remove(td);
+ }
+
public boolean isFirstScreenful() {
return mFirstScreenful;
}
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
index cd3bc42..b949e71 100644
--- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
@@ -689,6 +689,7 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
}
if (DEBUG) Log.v(TAG, "Jettison " + ad.getLabel());
mRecentTaskDescriptions.remove(ad);
+ mRecentTasksLoader.remove(ad);
// Handled by widget containers to enable LayoutTransitions properly
// mListAdapter.notifyDataSetChanged();