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

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

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

* commit 'de28d664e33c27f432f8f0ba379ad213488fd10d':
  Load ApplicationInfo for correct user.
parents af98b012 42fc95ce
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -582,9 +582,11 @@ public abstract class BaseStatusBar extends SystemUI implements


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