Merge "Settings: Fix the a11y focus issues in App Notifications subpage" into main

This commit is contained in:
Nikki Moteva
2024-12-02 10:57:46 +00:00
committed by Android (Google) Code Review
3 changed files with 28 additions and 3 deletions

View File

@@ -240,6 +240,11 @@ public class SettingsMainSwitchPreference extends TwoStatePreference implements
if (mMainSwitchBar != null) {
mMainSwitchBar.setTitle(getTitle());
mMainSwitchBar.setDisabledByAdmin(mEnforcedAdmin);
// Disable the focusability of the switch bar. The parent FrameLayout
// will be the only focusable view for the Main Switch Bar to avoid
// duplicate a11y focus.
mMainSwitchBar.setFocusable(false);
}
}