Loading quickstep/recents_ui_overrides/src/com/android/quickstep/OverviewInputConsumer.java +2 −6 Original line number Diff line number Diff line Loading @@ -136,17 +136,13 @@ public class OverviewInputConsumer<T extends BaseDraggingActivity> } private void sendEvent(MotionEvent ev) { if (mInvalidated || !mTarget.verifyTouchDispatch(this, ev)) { mInvalidated = true; if (mInvalidated) { return; } int flags = ev.getEdgeFlags(); ev.setEdgeFlags(flags | Utilities.EDGE_NAV_BAR); ev.offsetLocation(-mLocationOnScreen[0], -mLocationOnScreen[1]); if (ev.getAction() == ACTION_DOWN) { mTarget.onInterceptTouchEvent(ev); } mTarget.onTouchEvent(ev); mInvalidated = !mTarget.dispatchTouchEvent(this, ev); ev.offsetLocation(mLocationOnScreen[0], mLocationOnScreen[1]); ev.setEdgeFlags(flags); } Loading src/com/android/launcher3/Hotseat.java +7 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; import android.view.Gravity; import android.view.MotionEvent; import android.view.View; import android.view.ViewDebug; import android.view.ViewGroup; Loading Loading @@ -98,4 +99,10 @@ public class Hotseat extends CellLayout implements LogContainerProvider, Insetta setLayoutParams(lp); InsettableFrameLayout.dispatchInsets(this, insets); } @Override public boolean onTouchEvent(MotionEvent event) { // Don't let if follow through to workspace return true; } } src/com/android/launcher3/Launcher.java +0 −1 Original line number Diff line number Diff line Loading @@ -974,7 +974,6 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, mDropTargetBar.setup(mDragController); mAllAppsController.setupViews(mAppsView); mHotseat.setOnInterceptTouchListener(mWorkspace::onInterceptHotseatTouch); } /** Loading src/com/android/launcher3/Workspace.java +0 −7 Original line number Diff line number Diff line Loading @@ -475,13 +475,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator> super.onViewAdded(child); } protected boolean onInterceptHotseatTouch(View v, MotionEvent ev) { // We don't want any clicks to go through to the hotseat unless the workspace is in // the normal state or an accessible drag is in progress. return !workspaceIconsCanBeDragged() && !mLauncher.getAccessibilityDelegate().isInAccessibleDrag(); } /** * Initializes and binds the first page * @param qsb an existing qsb to recycle or null. Loading src/com/android/launcher3/views/BaseDragLayer.java +6 −2 Original line number Diff line number Diff line Loading @@ -223,14 +223,18 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext> @Override public boolean dispatchTouchEvent(MotionEvent ev) { return verifyTouchDispatch(this, ev) && super.dispatchTouchEvent(ev); return dispatchTouchEvent(this, ev); } public boolean dispatchTouchEvent(Object caller, MotionEvent ev) { return verifyTouchDispatch(caller, ev) && super.dispatchTouchEvent(ev); } /** * Returns true if the {@param caller} is allowed to dispatch {@param ev} on this view, * false otherwise. */ public boolean verifyTouchDispatch(Object caller, MotionEvent ev) { private boolean verifyTouchDispatch(Object caller, MotionEvent ev) { int action = ev.getAction(); if (action == ACTION_DOWN) { if (mCurrentTouchOwner != null) { Loading Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/OverviewInputConsumer.java +2 −6 Original line number Diff line number Diff line Loading @@ -136,17 +136,13 @@ public class OverviewInputConsumer<T extends BaseDraggingActivity> } private void sendEvent(MotionEvent ev) { if (mInvalidated || !mTarget.verifyTouchDispatch(this, ev)) { mInvalidated = true; if (mInvalidated) { return; } int flags = ev.getEdgeFlags(); ev.setEdgeFlags(flags | Utilities.EDGE_NAV_BAR); ev.offsetLocation(-mLocationOnScreen[0], -mLocationOnScreen[1]); if (ev.getAction() == ACTION_DOWN) { mTarget.onInterceptTouchEvent(ev); } mTarget.onTouchEvent(ev); mInvalidated = !mTarget.dispatchTouchEvent(this, ev); ev.offsetLocation(mLocationOnScreen[0], mLocationOnScreen[1]); ev.setEdgeFlags(flags); } Loading
src/com/android/launcher3/Hotseat.java +7 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; import android.view.Gravity; import android.view.MotionEvent; import android.view.View; import android.view.ViewDebug; import android.view.ViewGroup; Loading Loading @@ -98,4 +99,10 @@ public class Hotseat extends CellLayout implements LogContainerProvider, Insetta setLayoutParams(lp); InsettableFrameLayout.dispatchInsets(this, insets); } @Override public boolean onTouchEvent(MotionEvent event) { // Don't let if follow through to workspace return true; } }
src/com/android/launcher3/Launcher.java +0 −1 Original line number Diff line number Diff line Loading @@ -974,7 +974,6 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, mDropTargetBar.setup(mDragController); mAllAppsController.setupViews(mAppsView); mHotseat.setOnInterceptTouchListener(mWorkspace::onInterceptHotseatTouch); } /** Loading
src/com/android/launcher3/Workspace.java +0 −7 Original line number Diff line number Diff line Loading @@ -475,13 +475,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator> super.onViewAdded(child); } protected boolean onInterceptHotseatTouch(View v, MotionEvent ev) { // We don't want any clicks to go through to the hotseat unless the workspace is in // the normal state or an accessible drag is in progress. return !workspaceIconsCanBeDragged() && !mLauncher.getAccessibilityDelegate().isInAccessibleDrag(); } /** * Initializes and binds the first page * @param qsb an existing qsb to recycle or null. Loading
src/com/android/launcher3/views/BaseDragLayer.java +6 −2 Original line number Diff line number Diff line Loading @@ -223,14 +223,18 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext> @Override public boolean dispatchTouchEvent(MotionEvent ev) { return verifyTouchDispatch(this, ev) && super.dispatchTouchEvent(ev); return dispatchTouchEvent(this, ev); } public boolean dispatchTouchEvent(Object caller, MotionEvent ev) { return verifyTouchDispatch(caller, ev) && super.dispatchTouchEvent(ev); } /** * Returns true if the {@param caller} is allowed to dispatch {@param ev} on this view, * false otherwise. */ public boolean verifyTouchDispatch(Object caller, MotionEvent ev) { private boolean verifyTouchDispatch(Object caller, MotionEvent ev) { int action = ev.getAction(); if (action == ACTION_DOWN) { if (mCurrentTouchOwner != null) { Loading