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

Commit 959076ef authored by Adam Bookatz's avatar Adam Bookatz
Browse files

Don't auto-stop bg user if it's playing audio

Under certain conditions, we may stop a background user due to
inactivity. However, that user may be "active" even if it isn't visible;
in particular, it could be playing audio (due to an alarm). In such a
case, the user isn't inactive, so we shouldn't automatically stop it.

Bug: 378575468
Bug: 330351042
Flag: android.multiuser.schedule_stop_of_background_user
Test: atest UserControllerTest
Test: had bg user sound an alarm and confirmed it wasn't stopped
Change-Id: Ifbb359afc2508c288c3a8ead67e553f45d56f71b
parent 77af797d
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