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

Commit f5df5530 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Get applicationinfo as user.

Bug: 27237907
Change-Id: I84a07f035904c42f535ef30f2950788f5ac50aba
parent d4ea741d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -149,8 +149,9 @@ public final class NotificationRecord {
        }

        try {
            final ApplicationInfo applicationInfo = mContext.getPackageManager().getApplicationInfo(
                    sbn.getPackageName(), 0);
            final ApplicationInfo applicationInfo =
                    mContext.getPackageManager().getApplicationInfoAsUser(sbn.getPackageName(),
                            0, sbn.getUser().getIdentifier());
            if (applicationInfo.targetSdkVersion < Build.VERSION_CODES.N) {
                if (isNoisy) {
                    if (importance >= IMPORTANCE_HIGH) {