Add ApplicationInfo.userHandle
Bug: 235727273 Test: Manual with Settings App Change-Id: I42863c8be83f6321c04b40635e9ad39efed95ce5
This commit is contained in:
@@ -22,4 +22,7 @@ import android.os.UserHandle
|
||||
val ApplicationInfo.userId: Int
|
||||
get() = UserHandle.getUserId(uid)
|
||||
|
||||
val ApplicationInfo.userHandle: UserHandle
|
||||
get() = UserHandle.getUserHandleForUid(uid)
|
||||
|
||||
fun ApplicationInfo.toRoute() = "$packageName/$userId"
|
||||
|
||||
Reference in New Issue
Block a user