Merge "Fix issue where deleting item from folder leaves extra page" into jb-ub-now-kermit

This commit is contained in:
Adam Cohen
2014-01-09 19:14:52 +00:00
committed by Android (Google) Code Review
+5 -1
View File
@@ -773,7 +773,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);
}