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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user