DO NOT MERGE - Allow the workspace to swipe while it's loading.

You still can't modify the contents of the workspace while it's loading,
but this makes it appear a little bit more responsive.  Launching apps
while the launcher is loading has always been possible.

Bug: 2748595
Change-Id: Icf252beaee5b801b30216202ce6032c4d565cde3
This commit is contained in:
Joe Onorato
2010-08-31 09:59:21 -07:00
parent f5ed4f1141
commit fdf5fd63c6
2 changed files with 9 additions and 10 deletions
+6 -1
View File
@@ -726,7 +726,12 @@ public class AllApps3D extends RSSurfaceView
}
public boolean onLongClick(View v) {
if (mLocks != 0 || !isVisible()) {
// We don't accept long click events in these cases
// - If the workspace isn't ready to accept a drop
// - If we're not done loading (because we might be confused about which item
// to pick up
// - If we're not visible
if (!isVisible() || mLauncher.isWorkspaceLocked() || mLocks != 0) {
return true;
}
if (sRollo.checkClickOK() && mCurrentIconIndex == mDownIconIndex