am 712c2686: am 09a526fa: Merge "Fix bug: swiped apps in Recents come back on rotate" into jb-mr1.1-dev

* commit '712c26865c5d0491054143c15579c0c5db59923a':
  Fix bug: swiped apps in Recents come back on rotate
This commit is contained in:
Michael Jurka
2012-11-27 14:54:01 -08:00
committed by Android Git Automerger
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

@@ -703,6 +703,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();