Fix bug: swiped apps in Recents come back on rotate

Bug: 7409398
This commit is contained in:
Michael Jurka
2012-11-26 16:05:12 -08:00
parent 9a0fbd4c6d
commit e57922cc7d
2 changed files with 5 additions and 0 deletions

View File

@@ -138,6 +138,10 @@ public class RecentTasksLoader implements View.OnTouchListener {
return mLoadedTasks;
}
public void remove(TaskDescription td) {
mLoadedTasks.remove(td);
}
public boolean isFirstScreenful() {
return mFirstScreenful;
}

View File

@@ -689,6 +689,7 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
}
if (DEBUG) Log.v(TAG, "Jettison " + ad.getLabel());
mRecentTaskDescriptions.remove(ad);
mRecentTasksLoader.remove(ad);
// Handled by widget containers to enable LayoutTransitions properly
// mListAdapter.notifyDataSetChanged();