mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
Allowing ListenerView intercept events in system areas
See the discussion in thje bug Bug: 156044202 Change-Id: I68b3826602250ef163b96be95d80b98691456443
This commit is contained in:
@@ -186,11 +186,12 @@ 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)) {
|
||||
return topView;
|
||||
}
|
||||
|
||||
AbstractFloatingView topView = AbstractFloatingView.getTopOpenView(mActivity);
|
||||
if (topView != null
|
||||
&& (isEventInLauncher(ev) || topView.canInterceptEventsInSystemGestureRegion())
|
||||
&& topView.onControllerInterceptTouchEvent(ev)) {
|
||||
return topView;
|
||||
}
|
||||
|
||||
for (TouchController controller : mControllers) {
|
||||
|
||||
Reference in New Issue
Block a user