[Android] Fix FAB improperly displayed in the StorageBrowserFragment

Nicolas Pomepuy git at videolan.org
Wed Jun 21 15:52:32 UTC 2023


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Jun 21 10:18:50 2023 +0200| [e3bfc0239888d177d1458aebdc93d7fe1fa32237] | committer: Nicolas Pomepuy

Fix FAB improperly displayed in the StorageBrowserFragment

> https://code.videolan.org/videolan/vlc-android/commit/e3bfc0239888d177d1458aebdc93d7fe1fa32237
---

 .../vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
index 814ba2ea5d..8f45eb3ed8 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
@@ -672,7 +672,7 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
 
     private fun updateFab() {
         fabPlay?.let {
-            if (adapter.mediaCount > 0 || viewModel.url?.startsWith("file") == true) {
+            if (this !is StorageBrowserFragment && (adapter.mediaCount > 0 || viewModel.url?.startsWith("file") == true)) {
                 setFabPlayVisibility(true)
                 it.setOnClickListener{onFabPlayClick(it)}
             } else {



More information about the Android mailing list