Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac6f3b1b authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Ignore hidden views when computing exclusion rects" into qt-qpr1-dev

am: b5b3a581

Change-Id: Ic8fedfd3f10123d90c31d4b3fd35cc31d1bb8656
parents 79b74884 b5b3a581
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ class GestureExclusionTracker {
        while (i.hasNext()) {
            final GestureExclusionViewInfo info = i.next();
            final View v = info.getView();
            if (v == null || !v.isAttachedToWindow()) {
            if (v == null || !v.isAttachedToWindow() || !v.isShown()) {
                mGestureExclusionViewsChanged = true;
                i.remove();
                continue;
@@ -122,7 +122,8 @@ class GestureExclusionTracker {

        public int update() {
            final View excludedView = getView();
            if (excludedView == null || !excludedView.isAttachedToWindow()) return GONE;
            if (excludedView == null || !excludedView.isAttachedToWindow()
                    || !excludedView.isShown()) return GONE;
            final List<Rect> localRects = excludedView.getSystemGestureExclusionRects();
            final List<Rect> newRects = new ArrayList<>(localRects.size());
            for (Rect src : localRects) {
+1 −0
Original line number Diff line number Diff line
@@ -14423,6 +14423,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
        notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible);
        updateSystemGestureExclusionRects();
    }
    /**