[Android] Prevent the medialibrary search button to be displayed when browsing

Nicolas Pomepuy git at videolan.org
Tue Nov 2 12:31:14 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Oct  8 11:55:36 2021 +0200| [1e36c0f00158aa2b85fcf789962a20994b17cdd2] | committer: Nicolas Pomepuy

Prevent the medialibrary search button to be displayed when browsing

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

 .../src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt          | 5 +++++
 1 file changed, 5 insertions(+)

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 204c995d8..c44c81e64 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
@@ -627,4 +627,9 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
             }
         }
     }
+
+
+    override fun setSearchVisibility(visible: Boolean) {
+        // prevents the medialibrary search to be displayed in a browser context
+    }
 }



More information about the Android mailing list