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

Commit c1ea64ce authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Get applicationinfo as user." into nyc-dev

parents 4bb2de25 f5df5530
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) {