summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recent
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2013-05-02 14:49:45 +0200
committerMichael Jurka <mikejurka@google.com>2013-05-02 14:54:30 +0200
commit45eed3c69b718fe5dedaff0322e2ed4c2f55b9d3 (patch)
treeb7eb4dfcc7b8f9584ff92f8ea9841f28b3cb8ebc /packages/SystemUI/src/com/android/systemui/recent
parent55a08c5ab91014eb42ecdc9e7039c7bae1f00058 (diff)
downloadframeworks_base-45eed3c69b718fe5dedaff0322e2ed4c2f55b9d3.zip
frameworks_base-45eed3c69b718fe5dedaff0322e2ed4c2f55b9d3.tar.gz
frameworks_base-45eed3c69b718fe5dedaff0322e2ed4c2f55b9d3.tar.bz2
Fix bug where thumbnails in Recents disappear
Bug: 7900353 Bug: 8752242 Bug: 7382208
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();