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

Commit 0cb1a9f0 authored by Winson Chung's avatar Winson Chung Committed by android-build-team Robot
Browse files

Fix regression in updating gesture exclusion rects

- Only update the rects when the view visibility changes if there were
  previously set rects

Bug: 140157754
Test: atest SystemGestureExclusionRectsTest
Change-Id: Ica58de4ff43da75cfcdac3f359fc915f65608e78
(cherry picked from commit 3baffd871c1e1a0b9ab412f4e6a2ba11758c6076)
parent 99586afb
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -14423,8 +14423,13 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
        notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible);
        // Update the gesture exclusion rects only if they are set
        final ListenerInfo info = getListenerInfo();
        if (info != null && info.mSystemGestureExclusionRects != null) {
            updateSystemGestureExclusionRects();
        }
    }
    /**
     * Returns the current visibility of the window this view is attached to