Fix issue where deleting item from folder leaves extra page

Change-Id: Ie741dbe5341d8237c85f732b26661d084b99f6e2
This commit is contained in:
Adam Cohen
2013-12-13 17:18:10 -08:00
parent 674531f261
commit 9c58d8269b

View File

@@ -772,7 +772,11 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
}
completeDragExit();
}
} else {
}
// This is kind of hacky, but in general, dropping on the workspace handles removing
// the extra screen, but dropping elsewhere (back to self, or onto delete) doesn't.
if (target != mLauncher.getWorkspace()) {
mLauncher.getWorkspace().removeExtraEmptyScreen(true, null);
}