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

Skip to content
Commit f42149d2 authored by Matías Hernández's avatar Matías Hernández
Browse files

User toggling of a mode overrides automatic triggering

This reimplements "snoozing" (manually deactivating an active mode) and the opposite operation (manually activating an inactive mode) with the same semantics (the rule owner can only change a manually-applied state after cycling to and then away from that state). It also removes the attempt in ConditionProviders, which was incorrect (and didn't have enough information to make the decision there).

Also fix getAutomaticZenRuleState() which didn't consider snoozing and reported a rule as active in that case (oops).

Bug: 333527800
Test: unit test + cts + manual
Flag: android.app.modes_ui
Change-Id: Iebc9d5aad194fb0415960cccf4d3c2b8c4fc5e5a
parent 1fee29d6
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