[Android] Benchmark: add workaround to get AndroidTv working

Duncan McNamara git at videolan.org
Mon Jun 21 09:40:15 UTC 2021


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Mon Jun 21 11:29:02 2021 +0200| [c161eb438ca186113b85d710635bf48df09ee475] | committer: Duncan McNamara

Benchmark: add workaround to get AndroidTv working

This is a workaround to get AndroidTv working again with the benchmark.
For now I don't understand why it fails in the first place, but in the
meanwhile this works.

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

 application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index db791e29f..4dc561d45 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -347,7 +347,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
                 return
             }
             //PiP TV
-            if (AndroidDevices.isTv && isVideoPlaying) {
+            if (!isBenchmark && AndroidDevices.isTv && isVideoPlaying) {
                 VideoPlayerActivity.startOpened(ctx, mw.uri, currentIndex)
             }
             val title = mw.getMetaLong(MediaWrapper.META_TITLE)



More information about the Android mailing list