diff options
| author | 2024-09-02 08:49:59 +0000 | |
|---|---|---|
| committer | 2024-09-02 08:49:59 +0000 | |
| commit | 84bcebb55cdc28be792d6de41e8e68ff90868c77 (patch) | |
| tree | b0434885461236c287e5db6786e2c3ff00300606 | |
| parent | 0fc5d727b2dbeae6315242fa3b9334097e0117e5 (diff) | |
| parent | 548fed5e73d88dc93b67b606dfefb59c14d235f0 (diff) | |
Merge "[Flexiglass] Disable handling a11y scroll events in the NSSL" into main
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index 64d71240073f..e757148032e5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -4172,6 +4172,11 @@ public class NotificationStackScrollLayout */ @Override public boolean performAccessibilityActionInternal(int action, Bundle arguments) { + // Don't handle scroll accessibility events from the NSSL, when SceneContainer enabled. + if (SceneContainerFlag.isEnabled()) { + return super.performAccessibilityActionInternal(action, arguments); + } + if (super.performAccessibilityActionInternal(action, arguments)) { return true; } @@ -4933,6 +4938,11 @@ public class NotificationStackScrollLayout @Override public void onInitializeAccessibilityEventInternal(AccessibilityEvent event) { super.onInitializeAccessibilityEventInternal(event); + // Don't handle scroll accessibility events from the NSSL, when SceneContainer enabled. + if (SceneContainerFlag.isEnabled()) { + return; + } + event.setScrollable(mScrollable); event.setMaxScrollX(mScrollX); event.setScrollY(mOwnScrollY); @@ -4942,6 +4952,11 @@ public class NotificationStackScrollLayout @Override public void onInitializeAccessibilityNodeInfoInternal(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfoInternal(info); + // Don't handle scroll accessibility events from the NSSL, when SceneContainer enabled. + if (SceneContainerFlag.isEnabled()) { + return; + } + if (mScrollable) { info.setScrollable(true); if (mBackwardScrollable) { |