Loading src/com/android/launcher3/Workspace.java +6 −0 Original line number Diff line number Diff line Loading @@ -619,6 +619,12 @@ public class Workspace extends SmoothPagedView if (customContent instanceof Insettable) { ((Insettable)customContent).setInsets(mInsets); } // Verify that the child is removed from any existing parent. if (customContent.getParent() instanceof ViewGroup) { ViewGroup parent = (ViewGroup) customContent.getParent(); parent.removeView(customContent); } customScreen.removeAllViews(); customScreen.addViewToCellLayout(customContent, 0, 0, lp, true); mCustomContentDescription = description; Loading Loading
src/com/android/launcher3/Workspace.java +6 −0 Original line number Diff line number Diff line Loading @@ -619,6 +619,12 @@ public class Workspace extends SmoothPagedView if (customContent instanceof Insettable) { ((Insettable)customContent).setInsets(mInsets); } // Verify that the child is removed from any existing parent. if (customContent.getParent() instanceof ViewGroup) { ViewGroup parent = (ViewGroup) customContent.getParent(); parent.removeView(customContent); } customScreen.removeAllViews(); customScreen.addViewToCellLayout(customContent, 0, 0, lp, true); mCustomContentDescription = description; Loading