Don't crash on apps only installed for other users.

Change-Id: I13d415441aa1c7d09df7adccd4e2d2f9bbd3dbfb
Fixes: 28151314
This commit is contained in:
Julia Reynolds
2016-04-25 16:45:49 -04:00
parent c8d363e24c
commit 175bba9ed9

View File

@@ -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) {