[Android] Videos fragment: prevent IllegalStateException

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


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

Videos fragment: prevent IllegalStateException

(cherry picked from commit 1da1a94be2ecbc4c34cfa2a67f319193d3f61a7d)

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

 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 920463a59..70d5c3ca0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
@@ -244,7 +244,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