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

Commit 07bf9630 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Should use getApplicationInfoAsUser instead"

parents 4a7c42a7 22295fdc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2402,7 +2402,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {

        ApplicationInfo appInfo;
        try {
            appInfo = mContext.getPackageManager().getApplicationInfo(attrs.packageName,
            appInfo = mContext.getPackageManager().getApplicationInfoAsUser(
                            attrs.packageName,
                            0 /* flags */,
                            UserHandle.getUserId(callingUid));
        } catch (PackageManager.NameNotFoundException e) {
            appInfo = null;