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

Skip to content
Commit 82012de2 authored by Felipe Leme's avatar Felipe Leme
Browse files

Refactored user start mode boolean into a tri-state int.

Prior to Android U, a user would start either on foreground (A.K.A.
"current user") or background (in which case it could not launch
activities). But now, the background user could be associated with a
display, in which case it would become "visible" (and could launch
activities in that display).

So, this CL changes the foreground / background boolean state into a
new tri-state int (@UserStartMode):

- USER_START_MODE_FOREGROUND
- USER_START_MODE_BACKGROUND
- USER_START_MODE_BACKGROUND_VISIBLE

But it doesn't change any logic (yet :-).

Test: atest FrameworksServicesTests:UserControllerTest
Bug: 261537398

Change-Id: I30fd3b0f4ea3fa03c3520214b360fc6920138f9f
parent 74848985
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