diff options
author | Michael Jurka <mikejurka@google.com> | 2013-05-06 16:20:27 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-05-06 16:20:27 -0700 |
commit | f3ff4d6d80aef968adc865ad53bf5c3fff9c75de (patch) | |
tree | fa9b062b96ed669e34f8480a0a373dca5d27d6d2 /packages/SystemUI/src/com/android/systemui/recent | |
parent | 8d05a666fdc0048c05711ea68e5bfedf5ee2c193 (diff) | |
parent | 664f785e2c8697aa31fa69b9a109c09a99a2d50b (diff) | |
download | frameworks_base-f3ff4d6d80aef968adc865ad53bf5c3fff9c75de.zip frameworks_base-f3ff4d6d80aef968adc865ad53bf5c3fff9c75de.tar.gz frameworks_base-f3ff4d6d80aef968adc865ad53bf5c3fff9c75de.tar.bz2 |
am 664f785e: am 72f2a7af: Merge "Fix bug where thumbnails in Recents disappear" into jb-mr2-dev
* commit '664f785e2c8697aa31fa69b9a109c09a99a2d50b':
Fix bug where thumbnails in Recents disappear
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recent')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java | 4 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java | 3 |
2 files changed, 7 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 9281c75..02ddb73 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java @@ -286,6 +286,10 @@ public class RecentTasksLoader implements View.OnTouchListener { private void cancelLoadingThumbnailsAndIcons() { + if (mRecentsPanel != null && mRecentsPanel.isShowing()) { + return; + } + if (mTaskLoader != null) { mTaskLoader.cancel(false); mTaskLoader = null; diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java index c325937..62030ad 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java @@ -127,6 +127,9 @@ public class RecentsActivity extends Activity { } mShowing = true; if (mRecentsPanel != null) { + // Call and refresh the recent tasks list in case we didn't preload tasks + // or in case we don't get an onNewIntent + mRecentsPanel.refreshRecentTasksList(); mRecentsPanel.refreshViews(); } super.onStart(); |