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:
Adam Cohen
2013-10-23 16:11:50 -07:00
parent a718fc279d
commit e97a3b3ff8

View File

@@ -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