[Android] Favorites: re-enable with no storage permission

Duncan McNamara git at videolan.org
Mon Feb 14 09:15:39 UTC 2022


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Thu Feb 10 16:04:10 2022 +0100| [cf8238cfc889b8ccae9648fcd605400080efd346] | committer: Duncan McNamara

Favorites: re-enable with no storage permission

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

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

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/MainBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/MainBrowserFragment.kt
index 6d8bcaf81..0ddbb08f4 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/MainBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/MainBrowserFragment.kt
@@ -195,7 +195,7 @@ class MainBrowserFragment : BaseFragment(), View.OnClickListener, CtxActionRecei
         containerAdapterAssociation[favoritesBrowserContainer] = Pair(favoritesAdapter, favoritesViewModel)
         favoritesViewModel.favorites.observe(viewLifecycleOwner) { list ->
             list.let {
-                if (list.isEmpty() || !Permissions.canReadStorage(requireActivity())) favoritesEntry.setGone() else favoritesEntry.setVisible()
+                if (list.isEmpty()) favoritesEntry.setGone() else favoritesEntry.setVisible()
                 favoritesAdapter.update(it)
                 favoritesEntry.loading.state = when {
                     list.isNotEmpty() -> EmptyLoadingState.NONE



More information about the Android mailing list