mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev am: 70dd01be85
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15583988 Change-Id: I436611efcf40cb7e5311a1ff4b0ed79635114e29
This commit is contained in:
@@ -687,8 +687,9 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
CellLayout finalScreen = mWorkspaceScreens.get(finalScreenId);
|
||||
|
||||
// If the final screen is empty, convert it to the extra empty screen
|
||||
if (finalScreen.getShortcutsAndWidgets().getChildCount() == 0 &&
|
||||
!finalScreen.isDropPending()) {
|
||||
if (finalScreen != null
|
||||
&& finalScreen.getShortcutsAndWidgets().getChildCount() == 0
|
||||
&& !finalScreen.isDropPending()) {
|
||||
mWorkspaceScreens.remove(finalScreenId);
|
||||
mScreenOrder.removeValue(finalScreenId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user