Fix pause on volume zero

This commit is contained in:
h4h13 2020-04-15 23:04:06 +05:30
parent 1ab5db1389
commit aa92940b9a

View file

@ -63,6 +63,7 @@ class VolumeFragment : Fragment(), OnAudioVolumeChangedListener,
return return
} }
if (maxVolume <= 0.0f) { if (maxVolume <= 0.0f) {
setPauseWhenZeroVolume(currentVolume < 1)
return return
} }
volumeSeekBar.setRange(currentVolume, maxVolume) volumeSeekBar.setRange(currentVolume, maxVolume)