[Android] Remove TV hack for mediasession

Geoffrey Métais git at videolan.org
Mon Nov 6 12:04:08 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov  6 11:55:33 2017 +0100| [b450053b585bddf0758b4c6042d9764e1aa74a3e] | committer: Geoffrey Métais

Remove TV hack for mediasession

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 74dea0c54..cd5732057 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -979,11 +979,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         mRateHasChanged = mSavedRate != 1.0f;
 
         mService.setRate(1.0f, false);
-        if (AndroidDevices.isAndroidTv) {
-            mService.pause();
-            mService.saveMediaMeta();
-        } else
-            mService.stop();
+        mService.stop();
     }
 
     private void cleanUI() {



More information about the Android mailing list