Fix bug: swiped apps in Recents come back on rotate
Bug: 7409398
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user