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

Commit a379d91a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Guard against crash on startup"

parents c3094842 41eae630
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -413,6 +413,9 @@ public class VolumeDialogImpl implements VolumeDialog {
            Events.writeEvent(mContext, Events.EVENT_ICON_CLICK, AudioManager.STREAM_RING,
                    mRingerIcon.getTag());
            final StreamState ss = mState.states.get(AudioManager.STREAM_RING);
            if (ss == null) {
                return;
            }
            final boolean hasVibrator = mController.hasVibrator();
            if (mState.ringerModeInternal == AudioManager.RINGER_MODE_NORMAL) {
                if (hasVibrator) {
@@ -617,6 +620,9 @@ public class VolumeDialogImpl implements VolumeDialog {
    protected void updateRingerH() {
        if (mState != null) {
            final StreamState ss = mState.states.get(AudioManager.STREAM_RING);
            if (ss == null) {
                return;
            }
            switch (mState.ringerModeInternal) {
                case AudioManager.RINGER_MODE_VIBRATE:
                    mRingerStatus.setText(R.string.volume_ringer_status_vibrate);