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

Commit ea65969f authored by Lais Andrade's avatar Lais Andrade
Browse files

[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
parent 62b53814
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment