Set correct uid when loading app icon in data usage UI.
work profile apps belongs to a different user. Set the correct uid when loading the icon so the work profile badge is displayed. Change-Id: I2ed27d6b83c1b42961500dc8d63475bf1f7eabcd Fix: 38372681 Test: make RunSettingsRoboTests
This commit is contained in:
@@ -103,4 +103,10 @@ public class PackageManagerWrapperImpl implements PackageManagerWrapper {
|
||||
int userId) {
|
||||
mPm.deletePackageAsUser(packageName, observer, flags, userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPackageUidAsUser(String pkg, int userId)
|
||||
throws PackageManager.NameNotFoundException {
|
||||
return mPm.getPackageUidAsUser(pkg, userId);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user