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

Commit 802ba57b authored by Adam Bookatz's avatar Adam Bookatz
Browse files

Re-schedule bg stop on shorter timescale

If a background user was scheduled to stop, but we postponed it, we were
using the default automatic stopping time to decide how long to postpone
it. However, that was no longer ideal because:
* we now also have background user stops due to impending alarms. So
  even if the default scheduling is disabled, we still want to be able
to postpone schedules. Without this cl, we would simply never stop the
background user; now, we will.
* the default value might be a very large value. If we already wanted to
  stop the user, but just couldn't due to some transient issue (with no
evidence that the user is actually useful right now), we shouldn't have
to wait so long when rescheduling.

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