Skip to content
Snippets Groups Projects
Commit 12f2b0b2 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Show FAB only on tracks tab in the audio browser

parent b55c12e1
No related branches found
No related tags found
1 merge request!1743Show FAB only on tracks tab in the audio browser
Pipeline #352298 passed with stage
in 3 minutes and 57 seconds
......@@ -316,7 +316,12 @@ class AudioBrowserFragment : BaseAudioBrowser<AudioBrowserViewModel>() {
}
private fun setFabPlayShuffleAllVisibility(force: Boolean = false) {
setFabPlayVisibility(force || viewModel.providers[currentTab].pagedList.value?.size ?: 0 > 2)
setFabPlayVisibility(
currentTab == 2 && (
force ||
(viewModel.providers[currentTab].pagedList.value?.size ?: 0) > 2
)
)
}
override fun getTitle(): String = getString(R.string.audio)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment