[Android] BaseFragment: force updateFabPlayView

Duncan McNamara git at videolan.org
Wed May 10 12:01:21 UTC 2023


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Fri Apr 21 15:52:09 2023 +0200| [32bff6642ab2e92d7e9780bd90100a5848972070] | committer: Nicolas Pomepuy

BaseFragment: force updateFabPlayView

Remove unnecessary condition, as if hasFAB is false, updateFabPlayView
will have a null visibility, and fab / fabLarge will be hidden anyway.
This is usefull when the app starts in Browse, playlist or more where
fabPlay will not have been initialized yet.

Fixes #2901

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

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

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt
index c0ae724283..7818e83fc7 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt
@@ -73,7 +73,7 @@ abstract class BaseFragment : Fragment(), ActionMode.Callback {
             it.setProgressBackgroundColorSchemeColor(bColor)
         }
         if (isMainNavigationPoint) manageFabNeverShow()
-        if (hasFAB()) updateFabPlayView()
+        updateFabPlayView()
     }
 
     fun manageFabNeverShow() {



More information about the Android mailing list