Merge "Don't crash on apps only installed for other users." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1e5d0e731e
@@ -80,6 +80,7 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
|||||||
mBlock = (RestrictedSwitchPreference) getPreferenceScreen().findPreference(KEY_BLOCK);
|
mBlock = (RestrictedSwitchPreference) getPreferenceScreen().findPreference(KEY_BLOCK);
|
||||||
mSilent = (RestrictedSwitchPreference) getPreferenceScreen().findPreference(KEY_SILENT);
|
mSilent = (RestrictedSwitchPreference) getPreferenceScreen().findPreference(KEY_SILENT);
|
||||||
|
|
||||||
|
if (mPkgInfo != null) {
|
||||||
mAppRow = mBackend.loadAppRow(mContext, mPm, mPkgInfo);
|
mAppRow = mBackend.loadAppRow(mContext, mPm, mPkgInfo);
|
||||||
|
|
||||||
NotificationManager.Policy policy =
|
NotificationManager.Policy policy =
|
||||||
@@ -96,6 +97,7 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
|||||||
setupVisOverridePref(mAppRow.appVisOverride);
|
setupVisOverridePref(mAppRow.appVisOverride);
|
||||||
updateDependents(mAppRow.appImportance);
|
updateDependents(mAppRow.appImportance);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void updateDependents(int importance) {
|
protected void updateDependents(int importance) {
|
||||||
|
Reference in New Issue
Block a user