am 225ad9b7: Only show the most recent screen added to custom content (issue 11087978)
* commit '225ad9b7ff206b0beb1b448de38fa1b5679f2ed0':
Only show the most recent screen added to custom content (issue 11087978)
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index ef918e9..a81ada8 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -571,6 +571,7 @@
if (customContent instanceof Insettable) {
((Insettable)customContent).setInsets(mInsets);
}
+ customScreen.removeAllViews();
customScreen.addViewToCellLayout(customContent, 0, 0, lp, true);
mCustomContentDescription = description;