mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Ensuring that badge override is respected even if component name
is set on the Shortcut Bug: 276319271 Test: atest IconCacheTest Flag: N/A Change-Id: I33802ecd23485ba092f842ec3c3d58e2fc286f92
This commit is contained in:
@@ -181,9 +181,10 @@ public class InstallSessionHelper {
|
||||
public boolean isTrustedPackage(String pkg, UserHandle user) {
|
||||
synchronized (mSessionVerifiedMap) {
|
||||
if (!mSessionVerifiedMap.containsKey(pkg)) {
|
||||
boolean hasSystemFlag = new PackageManagerHelper(mAppContext).getApplicationInfo(
|
||||
pkg, user, ApplicationInfo.FLAG_SYSTEM) != null;
|
||||
mSessionVerifiedMap.put(pkg, DEBUG || hasSystemFlag);
|
||||
boolean hasSystemFlag = DEBUG || mAppContext.getPackageName().equals(pkg)
|
||||
|| new PackageManagerHelper(mAppContext)
|
||||
.getApplicationInfo(pkg, user, ApplicationInfo.FLAG_SYSTEM) != null;
|
||||
mSessionVerifiedMap.put(pkg, hasSystemFlag);
|
||||
}
|
||||
}
|
||||
return mSessionVerifiedMap.get(pkg);
|
||||
|
||||
Reference in New Issue
Block a user