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

Commit b071fdca authored by Sudheer Shanka's avatar Sudheer Shanka Committed by android-build-merger
Browse files

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

am: 15c1bb48

* commit '15c1bb48':
  Guard against exception when getting package installer info.

Change-Id: I3cf5a62c44b12356b48f841a03874f93b1c23981
parents f4ffd6da 15c1bb48
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;
        }