mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge "Replacing exception with a log, when uninstalling an app leads to an illegal state" into ub-launcher3-burnaby
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user