[Catalyst] Integrate vibration switches with main switch
Update VibrationIntensitySettingsStore to check on the
VIBRATE_ON settings and reflect the disabled state on
both the enabled and checked states of the preferences.
This is applied to both switch toggle and slider preferences.
Add dependency on the vibration main switch preference to update each
independent intensity preference state on main switch toggle.
The vibration switch will display unchecked state when the switch is
disabled, to preserve the current UX intention behind existing settings.
The stored user settings should not be overriden by this behavior, and
neither should haptic previews be played by main switch updates.
Added tests to cover the switch <-> mainSwitch integrated behavior.
NO_IFTTT=migration ongoing, no need to update legacy controllers
Bug: 390338213
Flag: com.android.settings.flags.catalyst_vibration_intensity_screen_25q4
Test: VibrationScreenTest
*VibrationIntensitySwitchPreferenceTest
Change-Id: Ic40dd3f5c2920ec5e3355d81c30d2e445e6bcd1e
Loading
Please register or sign in to comment