[Android] Fix empty loading state when going back to Video

Nicolas Pomepuy git at videolan.org
Fri May 28 08:46:00 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue May 25 14:19:59 2021 +0200| [72acce0bc826556671866179fbc0084c5b4b7d56] | committer: Nicolas Pomepuy

Fix empty loading state when going back to Video

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

 .../vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
index 052894e11..ad1ddb2e4 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
@@ -217,6 +217,11 @@ class VideoGridFragment : MediaBrowserFragment<VideosViewModel>(), SwipeRefreshL
         binding.videoGrid.adapter = videoListAdapter
     }
 
+    override fun onResume() {
+        super.onResume()
+        updateEmptyView()
+    }
+
     override fun onStart() {
         super.onStart()
         registerForContextMenu(binding.videoGrid)



More information about the Android mailing list