Merge "Fix bug where thumbnails in Recents disappear" into jb-mr2-dev

This commit is contained in:
Michael Jurka
2013-05-06 11:42:22 +00:00
committed by Android (Google) Code Review
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();