Fix bug where thumbnails in Recents disappear

Bug: 7900353
Bug: 8752242
Bug: 7382208
This commit is contained in:
Michael Jurka
2013-05-02 14:49:45 +02:00
parent 55a08c5ab9
commit 45eed3c69b
2 changed files with 7 additions and 0 deletions

View File

@@ -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;

View File

@@ -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();