diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-08-03 19:09:55 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-08-03 19:31:17 -0700 |
commit | 912bdfcffa04f8917ff56cc4e059208c13cbe29c (patch) | |
tree | 400ef51ba325d63b72d381c737fb8b6a323db607 | |
parent | 6eeab68fd4a5ba51e32717b18c40e9bea8b38e97 (diff) | |
download | android_packages_apps_Trebuchet-912bdfcffa04f8917ff56cc4e059208c13cbe29c.tar.gz android_packages_apps_Trebuchet-912bdfcffa04f8917ff56cc4e059208c13cbe29c.tar.bz2 android_packages_apps_Trebuchet-912bdfcffa04f8917ff56cc4e059208c13cbe29c.zip |
Replacing exception with a log, when uninstalling an app leads to an illegal state
Bug: 22491055
Change-Id: Iaf5fe20b717102bdb0a5442dcc33efea30c50d47
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 086934773..662eabc7c 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -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); |