diff options
author | Michael Jurka <mikejurka@google.com> | 2012-11-27 14:49:41 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-11-27 14:49:41 -0800 |
commit | 09a526faf311f77017f37af3fe8aba45bc2c32fb (patch) | |
tree | 9599ce1ca90c9676a530a3fb2f45bff6894d96b5 /packages | |
parent | 4df6c6292b9bfa35ece3c09d5094a7f4089c5029 (diff) | |
parent | e57922cc7d96620cab0c296e93b2b9b3a471c331 (diff) | |
download | frameworks_base-09a526faf311f77017f37af3fe8aba45bc2c32fb.zip frameworks_base-09a526faf311f77017f37af3fe8aba45bc2c32fb.tar.gz frameworks_base-09a526faf311f77017f37af3fe8aba45bc2c32fb.tar.bz2 |
Merge "Fix bug: swiped apps in Recents come back on rotate" into jb-mr1.1-dev
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 76cd33f..9a1e38d 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java @@ -703,6 +703,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(); |