(7) Launcher3 customization: After modifying the single screen, the system reports an error when you delete the Hotseat drag application. launcher3hotseat
After modifying the single screen, drag the icon in the workspace and release it on the delete button, an error is reported.
The dragged icon cannot be displayed again.
Triggered when dragging and releasing a hand
Public void onDropCompleted (final View target, final DragObject d, final boolean isFlingToDelete, final boolean success) {if (mDeferDropAfterUninstall) {// re-call mDeferredAction = new Runnable () {public void run () {onDropCompleted (target, d, isFlingToDelete, success) If you want to uninstall the software ); mDeferredAction = null ;}}; return ;}boolean beingCalledAfterUninstall = mDeferredAction! = Null; if (success &&! (BeingCalledAfterUninstall &&! MUninstallSuccessful) {if (target! = This & mDragInfo! = Null) {CellLayout parentCell = getParentCellLayoutForView (mDragInfo. cell); if (parentCell! = Null) {parentCell. removeView (mDragInfo. cell);} if (mDragInfo. cell instanceof DropTarget) {mDragController. removeDropTarget (DropTarget) mDragInfo. cell);} // If we move the item to anything not on the Workspace, check if any empty // screens need to be removed. if we dropped back on the workspace, this will // be done post drop animation. stripEmptyScreens () ;}} else if (mDragInfo! = Null & target! = Null &&(! (Target instanceof InfoDropTarget) {CellLayout cellLayout; if (mLauncher. isHotseatLayout (target) {cellLayout = mLauncher. getHotseat (). getLayout ();} else {cellLayout = getScreenWithId (mDragInfo. screenId);} // if (cellLayout = null) {// throw new RuntimeException ("Invalid state: cellLayout = null in" // + "Workspace # onDropCompleted. please file a bug. "); //} Add these two sentences here to fix this BUG if (cellLayout! = Null) {cellLayout. onDropChild (mDragInfo. cell);} if (mDragInfo. cell! = Null) {<span style = "white-space: pre"> </span> mDragInfo. cell. setVisibility (VISIBLE) ;}} if (d. canceled | target instanceof InfoDropTarget | (beingCalledAfterUninstall &&! MUninstallSuccessful) & mDragInfo. cell! = Null) {mDragInfo. cell. setVisibility (VISIBLE);} mDragOutline = null; mDragInfo = null ;}