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

This commit is contained in:
TreeHugger Robot 2021-09-08 22:09:53 +00:00 committed by Android (Google) Code Review
commit fd744975cc
1 changed files with 3 additions and 0 deletions

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);
}