[Android] Playlists: disable no permission view

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 11:45:08 2022 +0100| [1b843a8fd7180ea9b793aadcb1e76dab7b7c5483] | committer: Duncan McNamara

Playlists: disable no permission view

When the app has no storage access, it can still create playlists with
medias from network, it is hence not necessary to enforce the no
permission view on the playlist fragment.

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

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

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/PlaylistFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/PlaylistFragment.kt
index 40a00118d..b03c62283 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/PlaylistFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/PlaylistFragment.kt
@@ -130,7 +130,7 @@ class PlaylistFragment : BaseAudioBrowser<PlaylistsViewModel>(), SwipeRefreshLay
     private fun updateEmptyView() {
         swipeRefreshLayout.visibility = if (Medialibrary.getInstance().isInitiated) View.VISIBLE else View.GONE
         binding.emptyLoading.state =
-            if (!Permissions.canReadStorage(AppContextProvider.appContext)) EmptyLoadingState.MISSING_PERMISSION else if (viewModel.provider.loading.value == true && empty) EmptyLoadingState.LOADING else if (empty) EmptyLoadingState.EMPTY else EmptyLoadingState.NONE
+            if (viewModel.provider.loading.value == true && empty) EmptyLoadingState.LOADING else if (empty) EmptyLoadingState.EMPTY else EmptyLoadingState.NONE
     }
 
     override fun onCreateActionMode(mode: ActionMode, menu: Menu): Boolean {



More information about the Android mailing list