summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recent
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2013-05-06 16:20:27 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-06 16:20:27 -0700
commitf3ff4d6d80aef968adc865ad53bf5c3fff9c75de (patch)
treefa9b062b96ed669e34f8480a0a373dca5d27d6d2 /packages/SystemUI/src/com/android/systemui/recent
parent8d05a666fdc0048c05711ea68e5bfedf5ee2c193 (diff)
parent664f785e2c8697aa31fa69b9a109c09a99a2d50b (diff)
downloadframeworks_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.java4
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java3
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();