Fix settings crash if launched with null args

Test: manual
Change-Id: I81990d63606074fc670cc39471c91ee61a73f1fc
Fixes: 73666426
This commit is contained in:
Julia Reynolds
2018-09-07 14:14:47 -04:00
parent e4fe56e161
commit cbacfc5753

View File

@@ -112,10 +112,12 @@ abstract public class NotificationSettingsBase extends DashboardFragment {
mPkgInfo = findPackageInfo(mPkg, mUid);
if (mPkgInfo != null) {
mUserId = UserHandle.getUserId(mUid);
mSuspendedAppsAdmin = RestrictedLockUtilsInternal.checkIfApplicationIsSuspended(
mContext, mPkg, mUserId);
loadChannel();
loadAppRow();
loadChannelGroup();
@@ -127,6 +129,7 @@ abstract public class NotificationSettingsBase extends DashboardFragment {
controller.onResume(mAppRow, mChannel, mChannelGroup, mSuspendedAppsAdmin);
}
}
}
@Override
public void onCreate(Bundle savedInstanceState) {