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

Commit 7bcafc91 authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

Merge "Don\'t crash on apps only installed for other users." into nyc-dev

am: 1e5d0e73

* commit '1e5d0e73':
  Don't crash on apps only installed for other users.

Change-Id: I5579fc7966954fd63c95bff57aad12ef03cc997b
parents 31af251c 1e5d0e73
Loading
Loading
Loading
Loading
+17 −15
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ public class AppNotificationSettings extends NotificationSettingsBase {
        mBlock = (RestrictedSwitchPreference) getPreferenceScreen().findPreference(KEY_BLOCK);
        mSilent = (RestrictedSwitchPreference) getPreferenceScreen().findPreference(KEY_SILENT);

        if (mPkgInfo != null) {
            mAppRow = mBackend.loadAppRow(mContext, mPm, mPkgInfo);

            NotificationManager.Policy policy =
@@ -96,6 +97,7 @@ public class AppNotificationSettings extends NotificationSettingsBase {
            setupVisOverridePref(mAppRow.appVisOverride);
            updateDependents(mAppRow.appImportance);
        }
    }

    @Override
    protected void updateDependents(int importance) {