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

Commit 9c8f34f5 authored by Zhao Wei Liew's avatar Zhao Wei Liew
Browse files

SoundSettings: Always initialize mRingOrNotificationPreference

This prevents an NPE in updateRingOrNotificationPreference().
This fixes the issues detailed in the following changes:
I8d7231f50fc1f04acdc706e2d2c775bed7803fca
I8a286c92e4ca45e7055187377255e6d3b4c6c2bf

Change-Id: I73efbea75f4d69c68aefc298f388c2826e42916f
(cherry picked from commit 950ba49d)
parent 6bf73125
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@ public class SoundSettings extends SettingsPreferenceFragment implements Indexab
                com.android.internal.R.drawable.ic_audio_media_mute);
        initVolumePreference(KEY_ALARM_VOLUME, AudioManager.STREAM_ALARM,
                com.android.internal.R.drawable.ic_audio_alarm_mute);
        mRingOrNotificationPreference =
                initVolumePreference(KEY_NOTIFICATION_VOLUME, AudioManager.STREAM_NOTIFICATION,
                        com.android.internal.R.drawable.ic_audio_ring_notif_mute);
        if (mVoiceCapable) {