Merge "UM.getUserHandle -> UM.getProcessUserId"

This commit is contained in:
Adam Bookatz
2021-10-08 02:22:28 +00:00
committed by Android (Google) Code Review
7 changed files with 10 additions and 15 deletions

View File

@@ -301,8 +301,8 @@ public abstract class AppStateAppOpsBridge extends AppStateBaseBridge {
if (entries == null) {
return 0;
}
final ArrayMap<String, PermissionState> entriesForProfile = entries.get(mUserManager
.getUserHandle());
final ArrayMap<String, PermissionState> entriesForProfile =
entries.get(mUserManager.getProcessUserId());
if (entriesForProfile == null) {
return 0;
}
@@ -316,8 +316,8 @@ public abstract class AppStateAppOpsBridge extends AppStateBaseBridge {
}
loadPermissionsStates(entries);
loadAppOpsStates(entries);
final ArrayMap<String, PermissionState> entriesForProfile = entries.get(mUserManager
.getUserHandle());
final ArrayMap<String, PermissionState> entriesForProfile =
entries.get(mUserManager.getProcessUserId());
if (entriesForProfile == null) {
return 0;
}