Loading src/com/android/launcher3/AbstractFloatingView.java +4 −0 Original line number Diff line number Diff line Loading @@ -257,4 +257,8 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch @FloatingViewType int type) { return getOpenView(activity, type); } public boolean canInterceptEventsInSystemGestureRegion() { return false; } } src/com/android/launcher3/views/BaseDragLayer.java +6 −5 Original line number Diff line number Diff line Loading @@ -186,12 +186,13 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext> + ", isEventInLauncher=" + isEventInLauncher(ev) + ", topOpenView=" + AbstractFloatingView.getTopOpenView(mActivity)); } if (isEventInLauncher(ev)) { AbstractFloatingView topView = AbstractFloatingView.getTopOpenView(mActivity); if (topView != null && topView.onControllerInterceptTouchEvent(ev)) { if (topView != null && (isEventInLauncher(ev) || topView.canInterceptEventsInSystemGestureRegion()) && topView.onControllerInterceptTouchEvent(ev)) { return topView; } } for (TouchController controller : mControllers) { if (controller.onControllerInterceptTouchEvent(ev)) { Loading src/com/android/launcher3/views/ListenerView.java +5 −0 Original line number Diff line number Diff line Loading @@ -106,4 +106,9 @@ public class ListenerView extends AbstractFloatingView { // We want other views to be able to intercept the touch so we return false here. return false; } @Override public boolean canInterceptEventsInSystemGestureRegion() { return true; } } Loading
src/com/android/launcher3/AbstractFloatingView.java +4 −0 Original line number Diff line number Diff line Loading @@ -257,4 +257,8 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch @FloatingViewType int type) { return getOpenView(activity, type); } public boolean canInterceptEventsInSystemGestureRegion() { return false; } }
src/com/android/launcher3/views/BaseDragLayer.java +6 −5 Original line number Diff line number Diff line Loading @@ -186,12 +186,13 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext> + ", isEventInLauncher=" + isEventInLauncher(ev) + ", topOpenView=" + AbstractFloatingView.getTopOpenView(mActivity)); } if (isEventInLauncher(ev)) { AbstractFloatingView topView = AbstractFloatingView.getTopOpenView(mActivity); if (topView != null && topView.onControllerInterceptTouchEvent(ev)) { if (topView != null && (isEventInLauncher(ev) || topView.canInterceptEventsInSystemGestureRegion()) && topView.onControllerInterceptTouchEvent(ev)) { return topView; } } for (TouchController controller : mControllers) { if (controller.onControllerInterceptTouchEvent(ev)) { Loading
src/com/android/launcher3/views/ListenerView.java +5 −0 Original line number Diff line number Diff line Loading @@ -106,4 +106,9 @@ public class ListenerView extends AbstractFloatingView { // We want other views to be able to intercept the touch so we return false here. return false; } @Override public boolean canInterceptEventsInSystemGestureRegion() { return true; } }