Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5936307 authored by Kenny Guy's avatar Kenny Guy Committed by Android (Google) Code Review
Browse files

Merge "Load ApplicationInfo for correct user." into lmp-dev

parents 1728879d 1aca0dd7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -582,9 +582,11 @@ public abstract class BaseStatusBar extends SystemUI implements

    protected void applyColorsAndBackgrounds(StatusBarNotification sbn,
            NotificationData.Entry entry) {
        PackageManager pmUser = getPackageManagerForUser(
                entry.notification.getUser().getIdentifier());
        int version = 0;
        try {
            ApplicationInfo info = mContext.getPackageManager().getApplicationInfo(sbn.getPackageName(), 0);
            ApplicationInfo info = pmUser.getApplicationInfo(sbn.getPackageName(), 0);
            version = info.targetSdkVersion;
        } catch (NameNotFoundException ex) {
            Log.e(TAG, "Failed looking up ApplicationInfo for " + sbn.getPackageName(), ex);