Allowing ListenerView intercept events in system areas
See the discussion in thje bug Bug: 156044202 Change-Id: I68b3826602250ef163b96be95d80b98691456443
This commit is contained in:
1 parent
ad6a4dceea
commit
34cc5f45d0
3 files changed
+15
-5
No files matched your search
@@ -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