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

Commit 16ff8bfa authored by Adam Bookatz's avatar Adam Bookatz
Browse files

Reschedule bg stop if profile has alarm/audio

We avoid stopping a background user if it is playing audio or has an
upcoming alarm. But, currently, if its profile has audio/alarm, we still
may stop the parent, which will automatically stop the profile too.
We now make sure that if the profile shouldn't be stopped, we also don't
stop the parent (and therefore don't wind up indirectly stopping the
profile).

Bug: 401340391
Bug: 330351042
Test: UserControllerTest
Flag: android.multiuser.schedule_stop_of_background_user
Change-Id: I2341891ff193cbbb86cb2b0371e3a7b858c020bb
parent 0d9fb182
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