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
Loading
Please register or sign in to comment