[Android] Fix empty loading state in the Audio tab

Nicolas Pomepuy git at videolan.org
Thu Mar 10 10:11:33 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Mar 10 08:46:41 2022 +0100| [f5a584b527e48f2702ad30d49ae3a84a2a3fab76] | committer: Nicolas Pomepuy

Fix empty loading state in the Audio tab

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

 application/vlc-android/res/layout/audio_browser.xml                    | 2 +-
 .../vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/res/layout/audio_browser.xml b/application/vlc-android/res/layout/audio_browser.xml
index 6eed8566a..ed58ba127 100644
--- a/application/vlc-android/res/layout/audio_browser.xml
+++ b/application/vlc-android/res/layout/audio_browser.xml
@@ -51,7 +51,7 @@
             app:layout_constraintEnd_toEndOf="parent" />
 
     <org.videolan.vlc.gui.view.EmptyLoadingStateView
-            android:id="@+id/empty_loading"
+            android:id="@+id/audio_empty_loading"
             android:layout_width="0dp"
             android:layout_height="wrap_content"
             app:empty_text="@string/nomedia"
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 2f1930786..df0aee0eb 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
@@ -106,7 +106,7 @@ class AudioBrowserFragment : BaseAudioBrowser<AudioBrowserViewModel>() {
         val coordinator = view.rootView.findViewById<CoordinatorLayout>(R.id.coordinator)
         val fab = view.rootView.findViewById<FloatingActionButton>(R.id.fab)
         fastScroller = view.rootView.findViewById(R.id.songs_fast_scroller)
-        emptyView = view.rootView.findViewById(R.id.empty_loading)
+        emptyView = view.rootView.findViewById(R.id.audio_empty_loading)
         fastScroller.attachToCoordinator(appbar, coordinator, fab)
         emptyView.setOnNoMediaClickListener { requireActivity().setResult(RESULT_RESTART) }
     }



More information about the Android mailing list