Merge "Fix bug where thumbnails in Recents disappear" into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
72f2a7af82
@ -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;
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user