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

Skip to content
Commit b8354ea3 authored by Yuri Lin's avatar Yuri Lin
Browse files

Move zen mode evaluation back into setConfig.

The process of setting zen mode during a config change was separated into two pieces because of a cross-lock held with AudioManager. To avoid having lock contention, it suffices to bring the ringer mode changes out to the handler while having the zen mode evaluations happen in one pass.

Also remove an unnecessary call to evaluateZenMode in onSystemReady (it's called right after cleanUpZenRules, which will already call setConfig -> evaluateZenMode).

Bug: 280333605
Test: ZenModeHelperTest
Change-Id: Icc7615e2d02fc8b83613687c8e2bed8e99fa9613
parent 1aaa44d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment