Skip to content
Snippets Groups Projects
Commit cf8238cf authored by Duncan McNamara's avatar Duncan McNamara
Browse files

Favorites: re-enable with no storage permission

parent 1b843a8f
No related branches found
No related tags found
1 merge request!1239Start Medialibrary when no storage access
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment