[Android] TV Previews: remove unused code

Geoffrey Métais git at videolan.org
Tue Feb 5 16:34:30 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb  5 16:28:00 2019 +0100| [461558050d55611c0ae8bb63f780b800c5d0c4c2] | committer: Geoffrey Métais

TV Previews: remove unused code

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

 vlc-android/src/org/videolan/vlc/PreviewVideoInputService.kt | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/PreviewVideoInputService.kt b/vlc-android/src/org/videolan/vlc/PreviewVideoInputService.kt
index 4997b42bb..0faea50f6 100644
--- a/vlc-android/src/org/videolan/vlc/PreviewVideoInputService.kt
+++ b/vlc-android/src/org/videolan/vlc/PreviewVideoInputService.kt
@@ -47,7 +47,7 @@ class PreviewVideoInputService : TvInputService(), CoroutineScope {
             notifyVideoUnavailable(VIDEO_UNAVAILABLE_REASON_TUNING)
             val id = uri.lastPathSegment?.toLong() ?: return false
             launch {
-                val mw = this at PreviewVideoInputService.getFromMl { getMedia(id) }
+                val mw = getFromMl { getMedia(id) }
                 if (mw == null) {
                     Log.w(TAG, "Could not find video $id")
                     notifyVideoUnavailable(TvInputManager.VIDEO_UNAVAILABLE_REASON_UNKNOWN)
@@ -88,9 +88,7 @@ class PreviewVideoInputService : TvInputService(), CoroutineScope {
             this.height = height
         }
 
-        override fun onSetStreamVolume(volume: Float) {
-            player.setVolume((volume*100).toInt())
-        }
+        override fun onSetStreamVolume(volume: Float) {}
 
         override fun onSetCaptionEnabled(enabled: Boolean) {}
 



More information about the Android mailing list