Fix volume zero

This commit is contained in:
h4h13 2019-07-08 19:25:03 +05:30
parent 425d7caddd
commit f40a8e2d3e
4 changed files with 5 additions and 7 deletions

View file

@ -31,8 +31,8 @@ android {
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
applicationId "code.name.monkey.retromusic" applicationId "code.name.monkey.retromusic"
versionCode 337 versionCode 338
versionName '3.2.101' versionName '3.2.105'
multiDexEnabled true multiDexEnabled true

File diff suppressed because one or more lines are too long

View file

@ -203,7 +203,7 @@ class ArtistDetailActivity : AbsSlidingMusicPanelActivity(), ArtistDetailContrac
} }
private fun getArtist(): Artist { private fun getArtist(): Artist {
return this.artist; return this.artist
} }
private fun setArtist(artist: Artist) { private fun setArtist(artist: Artist) {
@ -332,7 +332,7 @@ class ArtistDetailActivity : AbsSlidingMusicPanelActivity(), ArtistDetailContrac
R.id.action_reset_artist_image -> { R.id.action_reset_artist_image -> {
Toast.makeText(this@ArtistDetailActivity, resources.getString(R.string.updating), Toast.makeText(this@ArtistDetailActivity, resources.getString(R.string.updating),
Toast.LENGTH_SHORT).show() Toast.LENGTH_SHORT).show()
CustomArtistImageUtil.getInstance(this@ArtistDetailActivity).resetCustomArtistImage(artist!!) CustomArtistImageUtil.getInstance(this@ArtistDetailActivity).resetCustomArtistImage(artist)
forceDownload = true forceDownload = true
return true return true
} }

View file

@ -121,8 +121,6 @@ class VolumeFragment : Fragment(), SeekBar.OnSeekBarChangeListener, OnAudioVolum
if (PreferenceUtil.getInstance().pauseOnZeroVolume()) if (PreferenceUtil.getInstance().pauseOnZeroVolume())
if (MusicPlayerRemote.isPlaying && pauseWhenZeroVolume) { if (MusicPlayerRemote.isPlaying && pauseWhenZeroVolume) {
MusicPlayerRemote.pauseSong() MusicPlayerRemote.pauseSong()
} else {
MusicPlayerRemote.resumePlaying()
} }
} }