[Android] Videos fragment: prevent IllegalStateException

Geoffrey Métais git at videolan.org
Tue Oct 1 14:33:41 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Sep 26 14:31:48 2019 +0200| [1da1a94be2ecbc4c34cfa2a67f319193d3f61a7d] | committer: Geoffrey Métais

Videos fragment: prevent IllegalStateException

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
index 772d48c3d..072ca5c56 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
@@ -241,7 +241,7 @@ class VideoGridFragment : MediaBrowserFragment<VideosViewModel>(), SwipeRefreshL
     }
 
     override fun onFabPlayClick(view: View) {
-        MediaUtils.playAll(requireContext(), viewModel.provider, 0, false)
+        MediaUtils.playAll(context, viewModel.provider, 0, false)
     }
 
     @MainThread



More information about the Android mailing list