Merge "Don\'t crash on apps only installed for other users." into nyc-dev am: 1e5d0e7
am: 7bcafc9
* commit '7bcafc914f72b468f075e7b32aacaf202693f606':
Don't crash on apps only installed for other users.
Change-Id: I8810669770237ab9d26785298f4f31b7894d9550
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user