[Android] AudioBrowser: disable permission view if not empty
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 18:32:34 2022 +0100| [531bb8e58c79c61c8a9da2f2ac9a072d4c2f714f] | committer: Duncan McNamara
AudioBrowser: disable permission view if not empty
> https://code.videolan.org/videolan/vlc-android/commit/531bb8e58c79c61c8a9da2f2ac9a072d4c2f714f
---
.../vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt
index 61881808e..a04f5e166 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt
@@ -290,7 +290,7 @@ class AudioBrowserFragment : BaseAudioBrowser<AudioBrowserViewModel>() {
private fun updateEmptyView() {
swipeRefreshLayout.visibility = if (Medialibrary.getInstance().isInitiated) View.VISIBLE else View.GONE
empty_loading.state =
- if (!Permissions.canReadStorage(requireActivity())) EmptyLoadingState.MISSING_PERMISSION else if (viewModel.providers[currentTab].loading.value == true && empty) EmptyLoadingState.LOADING else if (empty) EmptyLoadingState.EMPTY else EmptyLoadingState.NONE
+ if (!Permissions.canReadStorage(requireActivity()) && empty) EmptyLoadingState.MISSING_PERMISSION else if (viewModel.providers[currentTab].loading.value == true && empty) EmptyLoadingState.LOADING else if (empty) EmptyLoadingState.EMPTY else EmptyLoadingState.NONE
}
override fun onPageSelected(position: Int) {
More information about the Android
mailing list