Merge "Fix crash when Workspace item is added to two panel home" into sc-v2-dev am: fd744975cc

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15786971

Change-Id: I79c59338dfbef2b54fd87885afe175555258ae04
This commit is contained in:
TreeHugger Robot authored and Automerger Merge Worker committed 2021-09-08 22:19:13 +00:00
commit 1bde92ca95
1 file changed
+3
+3
View File
@@ -2229,6 +2229,9 @@ public class Launcher extends StatefulActivity<LauncherState> implements Launche
ArrayList<ItemInfo> addAnimated) {
// Add the new screens
if (newScreens != null) {
// newScreens can contain an empty right panel that is already bound, but not known
// by BgDataModel.
newScreens.removeAllValues(mWorkspace.mScreenOrder);
bindAddScreens(newScreens);
}