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

Commit 4f9cbd2a authored by Kenny Guy's avatar Kenny Guy Committed by Android Git Automerger
Browse files

am 21e106f8: Merge "Load ApplicationInfo for correct user." into lmp-dev

* commit '21e106f8c1578767a829bd8895b8d101af3b4f8d':
  Load ApplicationInfo for correct user.
parents 0f933773 d5936307
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);