diff options
| author | 2024-06-18 18:38:55 +0200 | |
|---|---|---|
| committer | 2024-06-18 18:38:55 +0200 | |
| commit | 0edaeb2231a09eb9140e23ea153afa1a73783f90 (patch) | |
| tree | 358b9a2e205014c5f5710f7eb8655acf4bb229a2 | |
| parent | 19e9179bf304f41e95c0f98cac5a32600eb69ddc (diff) | |
Fix HUN touchable area
In ag/27828935 a `!` was added to mIsIdleOnGone without changing the
initial value of it. This would make the condition always true when
SceneContainerFlag is disabled. Added an explicit flag guard to
protect from this.
Bug: 347956770
Flag: com.android.systemui.scene_container
Test: Fixed regression
Change-Id: I1c476e867945b2d61c5d162f9889729ff4191546
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarTouchableRegionManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarTouchableRegionManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarTouchableRegionManager.java index 4b1ee58c2cc6..02187844d6da 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarTouchableRegionManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarTouchableRegionManager.java @@ -68,7 +68,7 @@ public final class StatusBarTouchableRegionManager implements Dumpable { private final UnlockedScreenOffAnimationController mUnlockedScreenOffAnimationController; private boolean mIsStatusBarExpanded = false; - private boolean mIsIdleOnGone = false; + private boolean mIsIdleOnGone = true; private boolean mShouldAdjustInsets = false; private View mNotificationShadeWindowView; private View mNotificationPanelView; @@ -282,7 +282,7 @@ public final class StatusBarTouchableRegionManager implements Dumpable { // since we don't want stray touches to go through the light reveal scrim to whatever is // underneath. return mIsStatusBarExpanded - || !mIsIdleOnGone + || (SceneContainerFlag.isEnabled() && !mIsIdleOnGone) || mPrimaryBouncerInteractor.isShowing().getValue() || mAlternateBouncerInteractor.isVisibleState() || mUnlockedScreenOffAnimationController.isAnimationPlaying(); |