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

Commit c18c5174 authored by qqzhou's avatar qqzhou Committed by Dan Sandler
Browse files

Settings: Fix NPE in ChannelNotificationSettings

java.lang.NullPointerException: Attempt to invoke virtual method 'int
android.app.NotificationChannel.getImportance()' on a null object
reference at com.android.settings.notification.ChannelNotificationSettings.
onActivityResult.

Change-Id: I3ec7b51e2533dc108b1a14c151e3ad70d22113e5
CRs-Fixed: 2068192
Fixes: 64116799
Fixes: 64134707
Test: monkey
parent b27d65fa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -352,8 +352,10 @@ public class ChannelNotificationSettings extends NotificationSettingsBase {
        if (mRingtone != null) {
            mRingtone.onActivityResult(requestCode, resultCode, data);
        }
        if (mChannel != null) {
            mImportance.setSummary(getImportanceSummary(mChannel.getImportance()));
        }
    }

    boolean canPulseLight() {
        if (!getResources()