[Android] Fix video FAB when changing tabs

Nicolas Pomepuy git at videolan.org
Fri Oct 18 13:31:20 UTC 2024


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Oct 18 11:04:33 2024 +0200| [29b5cfa7478bc5fee70315a7f66410c09973e6e3] | committer: Nicolas Pomepuy

Fix video FAB when changing tabs

Fixes #3096

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

 .../src/org/videolan/vlc/gui/video/VideoBrowserFragment.kt            | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoBrowserFragment.kt
index 26d0bedfcf..fbf2612071 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoBrowserFragment.kt
@@ -103,7 +103,9 @@ class VideoBrowserFragment : BaseFragment(), TabLayout.OnTabSelectedListener, Fi
 
     override fun onDestroyActionMode(mode: ActionMode?) {}
 
-    override fun onTabSelected(tab: TabLayout.Tab) { }
+    override fun onTabSelected(tab: TabLayout.Tab) {
+        setFabPlayVisibility(hasFAB())
+    }
 
     override fun onTabUnselected(tab: TabLayout.Tab) {
         stopActionMode()



More information about the Android mailing list