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

Skip to content
Commit 1dfbc3da authored by Ioana Alexandru's avatar Ioana Alexandru Committed by Matías Hernández
Browse files

Update DND quick affordance to work better with modes

Also (flaggedly) refactor DoNotDisturbQuickAffordanceConfig to use ZenModeInteractor instead of the obsolete ZenModeController.

Previously, onTriggered was calling setInterruptionFilter(), which under MODES_UI controls only the DND mode. Thus pressing it when some other mode was active had no effect (tried to turn off DND, which wasn't actually active). Ideally, there should be a quick affordance for modes, however these cannot be dynamic at this point -- so this one still controls only DND, but now works correctly.

Fixes: 365759676
Test: atest DoNotDisturbQuickAffordanceConfigTest
Flag: android.app.modes_ui

Change-Id: I0a306e2e1905f3caf8451f75710c317ec245fe32
parent 45f28caa
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