[Android] Fix FAB visibility when resuming the audio browser
Nicolas Pomepuy
git at videolan.org
Mon Jan 24 11:03:03 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Jan 19 08:34:00 2022 +0100| [ff98ff1692b73ad04b232c22c28fd81953f7231c] | committer: Nicolas Pomepuy
Fix FAB visibility when resuming the audio browser
Fixes #2272
> https://code.videolan.org/videolan/vlc-android/commit/ff98ff1692b73ad04b232c22c28fd81953f7231c
---
.../vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt
index daa8f86c9..5a2251716 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt
@@ -280,7 +280,7 @@ class AudioBrowserFragment : BaseAudioBrowser<AudioBrowserViewModel>() {
}
private fun setFabPlayShuffleAllVisibility(force: Boolean = false) {
- setFabPlayVisibility(force || songsAdapter.itemCount > 2)
+ setFabPlayVisibility(force || viewModel.providers[currentTab].pagedList.value?.size ?: 0 > 2)
}
override fun getTitle(): String = getString(R.string.audio)
More information about the Android
mailing list