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

Skip to content
Commit 7144cbf7 authored by Adam Bookatz's avatar Adam Bookatz
Browse files

isForegroundUserAdmin public API

Introduce an API by which callers can determine whether the foreground
user is an admin (even though the caller may not know who the foreground
user is). Foreground is synonymous with current.

Also adds an additional Flag for future communal development, where this
API is expected to be useful.

Test: atest android.multiuser.cts.UserManagerTest#testIsForegroundUserAdminUser_withAdditionalUser
Test: atest android.multiuser.cts.UserManagerTest#testIsForegroundUserAdminUser_admin
Change-Id: I2f2d74681b302a64991b11b32382558118ba798b
parent ec4ed104
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