[Android] Fix Moviepedia player state issue

Nicolas Pomepuy git at videolan.org
Mon Dec 2 11:34:26 CET 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Dec  2 07:48:41 2019 +0100| [2fdb58ab8813f3abec65d79d747e19deddc2453d] | committer: Geoffrey Métais

Fix Moviepedia player state issue

Fixes #1102

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

 .../src/org/videolan/vlc/gui/tv/MoviepediaTvshowDetailsFragment.kt     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/MoviepediaTvshowDetailsFragment.kt b/vlc-android/src/org/videolan/vlc/gui/tv/MoviepediaTvshowDetailsFragment.kt
index 671550ba9..e40389b32 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MoviepediaTvshowDetailsFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MoviepediaTvshowDetailsFragment.kt
@@ -58,6 +58,7 @@ import kotlinx.coroutines.*
 import org.videolan.medialibrary.interfaces.media.AbstractMediaWrapper
 import org.videolan.vlc.R
 import org.videolan.vlc.database.models.*
+import org.videolan.vlc.media.MediaUtils
 import org.videolan.vlc.repository.BrowserFavRepository
 import org.videolan.vlc.util.HttpImageLoader
 import org.videolan.vlc.util.getFromMl
@@ -271,7 +272,7 @@ class MoviepediaTvshowDetailsFragment : DetailsSupportFragment(), CoroutineScope
         rowPresenter.onActionClickedListener = OnActionClickedListener { action ->
             when (action.id.toInt()) {
                 ID_RESUME -> {
-                    TvUtil.playMedia(activity, getResumeMedias())
+                    MediaUtils.openList(activity, getResumeMedias(), 0)
                 }
                 ID_START_OVER -> {
 



More information about the Android mailing list