diff options
author | Michael Jurka <mikejurka@google.com> | 2012-11-26 16:05:12 -0800 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2012-11-26 16:05:27 -0800 |
commit | e57922cc7d96620cab0c296e93b2b9b3a471c331 (patch) | |
tree | b21dc075b1c2961ae0f48669d9fca589481e9543 /packages | |
parent | 9a0fbd4c6da2905504defdba9843d3fcbe0c1367 (diff) | |
download | frameworks_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.java | 4 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java | 1 |
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(); |