mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Fix issue where empty page doesn't get deleted when flinging to delete a widget in spring loaded
Change-Id: I59a78a4b9135b2c96f0adb4a2e63b19d504706b7
This commit is contained in:
@@ -811,9 +811,16 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
!(target instanceof DeleteDropTarget))) {
|
||||
// Exit spring loaded mode if we have not successfully dropped or have not handled the
|
||||
// drop in Workspace
|
||||
mLauncher.exitSpringLoadedDragMode();
|
||||
mLauncher.getWorkspace().removeExtraEmptyScreen(true, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
mLauncher.exitSpringLoadedDragMode();
|
||||
mLauncher.unlockScreenOrientation(false);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
mLauncher.unlockScreenOrientation(false);
|
||||
}
|
||||
mLauncher.unlockScreenOrientation(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user