Build success in Android Studio
This commit is contained in:
@@ -37,3 +37,7 @@ android {
|
||||
dependencies {
|
||||
implementation "androidx.core:core:${ANDROID_X_VERSION}"
|
||||
}
|
||||
|
||||
repositories {
|
||||
google()
|
||||
}
|
||||
|
||||
@@ -66,12 +66,12 @@ public class SimpleIconCache extends BaseIconCache {
|
||||
@Override
|
||||
protected long getSerialNumberForUser(UserHandle user) {
|
||||
synchronized (mUserSerialMap) {
|
||||
int index = mUserSerialMap.indexOfKey(user.getIdentifier());
|
||||
int index = mUserSerialMap.indexOfKey(user.hashCode());
|
||||
if (index >= 0) {
|
||||
return mUserSerialMap.valueAt(index);
|
||||
}
|
||||
long serial = mUserManager.getSerialNumberForUser(user);
|
||||
mUserSerialMap.put(user.getIdentifier(), serial);
|
||||
mUserSerialMap.put(user.hashCode(), serial);
|
||||
return serial;
|
||||
}
|
||||
}
|
||||
@@ -84,7 +84,7 @@ public class SimpleIconCache extends BaseIconCache {
|
||||
|
||||
@Override
|
||||
protected boolean isInstantApp(ApplicationInfo info) {
|
||||
return info.isInstantApp();
|
||||
return mContext.getPackageManager().isInstantApp(info.packageName);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user