Only show the most recent screen added to custom content (issue 11087978)

Change-Id: Id50604e982cbb3abb26e5dfc3fcc37339529539d
This commit is contained in:
Adam Cohen
2013-10-07 13:03:00 -07:00
parent 92aa423826
commit 225ad9b7ff

View File

@@ -571,6 +571,7 @@ public class Workspace extends SmoothPagedView
if (customContent instanceof Insettable) {
((Insettable)customContent).setInsets(mInsets);
}
customScreen.removeAllViews();
customScreen.addViewToCellLayout(customContent, 0, 0, lp, true);
mCustomContentDescription = description;