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

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

Merge "Guard against exception when getting package installer info." into nyc-dev

parents a23cd461 aed0537a
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -908,8 +908,13 @@ public class InstalledAppDetails extends AppInfoBase
    }

    private void addAppInstallerInfoPref(PreferenceScreen screen) {
        final String installerPackageName =
        String installerPackageName = null;
        try {
            installerPackageName =
                    getContext().getPackageManager().getInstallerPackageName(mPackageName);
        } catch (IllegalArgumentException e) {
            Log.e(TAG, "Exception while retrieving the package installer of " + mPackageName, e);
        }
        if (installerPackageName == null) {
            return;
        }