am 72f2a7af: Merge "Fix bug where thumbnails in Recents disappear" into jb-mr2-dev

* commit '72f2a7af828056fc426d936c1d40cb6bbdbdf7c7':
  Fix bug where thumbnails in Recents disappear
This commit is contained in:
Michael Jurka
2013-05-06 11:11:54 -07:00
committed by Android Git Automerger
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();