Hot fix
This commit is contained in:
parent
eec8738b48
commit
6c27767930
4 changed files with 17 additions and 15 deletions
|
@ -13,7 +13,7 @@ android {
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|
||||||
applicationId "code.name.monkey.retromusic"
|
applicationId "code.name.monkey.retromusic"
|
||||||
versionCode 388
|
versionCode 389
|
||||||
versionName '3.4.600'
|
versionName '3.4.600'
|
||||||
|
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
|
@ -57,9 +57,9 @@ open class MiniPlayerFragment : AbsMusicServiceFragment(), MusicProgressViewUpda
|
||||||
actionPrevious.visibility = View.VISIBLE
|
actionPrevious.visibility = View.VISIBLE
|
||||||
actionPlayingQueue.visibility = View.VISIBLE
|
actionPlayingQueue.visibility = View.VISIBLE
|
||||||
} else {
|
} else {
|
||||||
actionNext.visibility = if (PreferenceUtil.getInstance(requireContext()).isExtraMiniExtraControls) View.VISIBLE else View.GONE
|
actionNext.visibility = if (PreferenceUtil.getInstance(requireContext()).isExtraControls) View.VISIBLE else View.GONE
|
||||||
actionPlayingQueue.visibility = if (PreferenceUtil.getInstance(requireContext()).isExtraMiniExtraControls) View.GONE else View.VISIBLE
|
actionPlayingQueue.visibility = if (PreferenceUtil.getInstance(requireContext()).isExtraControls) View.GONE else View.VISIBLE
|
||||||
actionPrevious.visibility = if (PreferenceUtil.getInstance(requireContext()).isExtraMiniExtraControls) View.VISIBLE else View.GONE
|
actionPrevious.visibility = if (PreferenceUtil.getInstance(requireContext()).isExtraControls) View.VISIBLE else View.GONE
|
||||||
}
|
}
|
||||||
|
|
||||||
actionPlayingQueue.setOnClickListener(this)
|
actionPlayingQueue.setOnClickListener(this)
|
||||||
|
@ -109,6 +109,7 @@ open class MiniPlayerFragment : AbsMusicServiceFragment(), MusicProgressViewUpda
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateButtons() {
|
private fun updateButtons() {
|
||||||
|
if (PreferenceUtil.getInstance(requireContext()).isExtraControls) {
|
||||||
if (MusicPlayerRemote.playingQueue.fistElement()) {
|
if (MusicPlayerRemote.playingQueue.fistElement()) {
|
||||||
actionPrevious.hide()
|
actionPrevious.hide()
|
||||||
} else {
|
} else {
|
||||||
|
@ -121,6 +122,7 @@ open class MiniPlayerFragment : AbsMusicServiceFragment(), MusicProgressViewUpda
|
||||||
actionNext.show()
|
actionNext.show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onUpdateProgressViews(progress: Int, total: Int) {
|
override fun onUpdateProgressViews(progress: Int, total: Int) {
|
||||||
progressBar.max = total
|
progressBar.max = total
|
||||||
|
|
|
@ -291,7 +291,7 @@ public final class PreferenceUtil {
|
||||||
return mPreferences.getBoolean(INITIALIZED_BLACKLIST, false);
|
return mPreferences.getBoolean(INITIALIZED_BLACKLIST, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isExtraMiniExtraControls() {
|
public boolean isExtraControls() {
|
||||||
return mPreferences.getBoolean(TOGGLE_ADD_CONTROLS, false);
|
return mPreferences.getBoolean(TOGGLE_ADD_CONTROLS, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<string name="accent_color">Accent color</string>
|
<string name="accent_color">Accent color</string>
|
||||||
<string name="accent_color_desc">The theme accent color, defaults to teal</string>
|
<string name="accent_color_desc">The theme accent color, defaults to teal</string>
|
||||||
|
|
||||||
<string name="action_about">action_add_to_playlist</string>
|
<string name="action_about">About</string>
|
||||||
<string name="action_add_to_favorites">Add to favorites</string>
|
<string name="action_add_to_favorites">Add to favorites</string>
|
||||||
<string name="action_add_to_playing_queue">Add to playing queue</string>
|
<string name="action_add_to_playing_queue">Add to playing queue</string>
|
||||||
<string name="action_add_to_playlist">Add to playlist</string>
|
<string name="action_add_to_playlist">Add to playlist</string>
|
||||||
|
|
Loading…
Reference in a new issue