am 70e4cf1c: am 225ad9b7: Only show the most recent screen added to custom content (issue 11087978)
* commit '70e4cf1c610765ba559255d07e0a9420ddb86c68':
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;