diff options
Diffstat (limited to 'src/com/android/launcher2/Workspace.java')
-rw-r--r-- | src/com/android/launcher2/Workspace.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 37a244464..cc09bdbd9 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -37,6 +37,7 @@ import android.widget.Scroller; import android.widget.TextView; import android.os.Parcelable; import android.os.Parcel; +import android.util.Log; import java.util.ArrayList; @@ -46,6 +47,7 @@ import java.util.ArrayList; * A workspace is meant to be used with a fixed width only. */ public class Workspace extends ViewGroup implements DropTarget, DragSource, DragScroller { + private static final String TAG = "Launcher.Workspace"; private static final int INVALID_SCREEN = -1; /** @@ -647,6 +649,16 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag } @Override + public boolean dispatchTouchEvent(MotionEvent ev) { + if (ev.getAction() == MotionEvent.ACTION_DOWN) { + if (mLauncher.isWorkspaceLocked() || mLauncher.isAllAppsVisible()) { + return false; + } + } + return super.dispatchTouchEvent(ev); + } + + @Override public boolean onInterceptTouchEvent(MotionEvent ev) { if (mLauncher.isWorkspaceLocked() || mLauncher.isAllAppsVisible()) { return false; // We don't want the events. Let them fall through to the all apps view. |