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

Commit 42fc95ce authored by Kenny Guy's avatar Kenny Guy Committed by Android Git Automerger
Browse files

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

* commit 'd74446b251aa2258ef6bbff33019a236836630be':
  Load ApplicationInfo for correct user.
parents 4bf61aa6 4f9cbd2a
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);