Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c451da70 authored by Sunny Goyal's avatar Sunny Goyal Committed by Android (Google) Code Review
Browse files

Merge "Replacing exception with a log, when uninstalling an app leads to an...

Merge "Replacing exception with a log, when uninstalling an app leads to an illegal state" into ub-launcher3-burnaby
parents 209a859d 912bdfcf
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3768,7 +3768,11 @@ public class Workspace extends PagedView
        if (parentCell != null) {
            parentCell.removeView(v);
        } else if (LauncherAppState.isDogfoodBuild()) {
            throw new NullPointerException("mDragInfo.cell has null parent");
            // When an app is uninstalled using the drop target, we wait until resume to remove
            // the icon. We also remove all the corresponding items from the workspace at
            // {@link Launcher#bindComponentsRemoved}. That call can come before or after
            // {@link Launcher#mOnResumeCallbacks} depending on how busy the worker thread is.
            Log.e(TAG, "mDragInfo.cell has null parent");
        }
        if (v instanceof DropTarget) {
            mDragController.removeDropTarget((DropTarget) v);