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

Commit 8a51acae authored by Eric Laurent's avatar Eric Laurent
Browse files

Display vibrate icon in volume panel

When a tablet is in vibrate mode, the notification
volume icon in the expanded volume panel should
be vibrate and not silent.

Bug 7235006

Change-Id: I150c1f0f571e3910ebae57442a75740cef00341e
parent c1905339
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -468,7 +468,8 @@ public class VolumePanel extends Handler implements OnSeekBarChangeListener, Vie
        // Force reloading the image resource
        sc.icon.setImageDrawable(null);
        sc.icon.setImageResource(muted ? sc.iconMuteRes : sc.iconRes);
        if (sc.streamType == AudioManager.STREAM_RING &&
        if (((sc.streamType == AudioManager.STREAM_RING) ||
                (sc.streamType == AudioManager.STREAM_NOTIFICATION)) &&
                mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE) {
            sc.icon.setImageResource(R.drawable.ic_audio_ring_notif_vibrate);
        }