[Android] Video player: restore playback progress correctly

Geoffrey Métais git at videolan.org
Fri Dec 7 09:43:33 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec  7 09:43:03 2018 +0100| [3d0594b4d349c2d443311d546a5ede84fe0f157e] | committer: Geoffrey Métais

Video player: restore playback progress correctly

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 +++
 1 file changed, 3 insertions(+)

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 ea5c46b12..04ade2f82 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2239,6 +2239,9 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
 
             if(!mIsTv)
                 mOrientationToggle.setVisibility(View.VISIBLE);
+        } else {
+            mHudBinding.setProgress(mService.getPlaylistManager().getPlayer().getProgress());
+            mHudBinding.setLifecycleOwner(this);
         }
     }
 



More information about the Android mailing list