[Android] VideoPlayer: call cleanUI from onStop()

Thomas Guillem git at videolan.org
Tue May 23 16:54:13 CEST 2017


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue May 23 16:47:35 2017 +0200| [59b83e3d1de818f6e21a15c499276a6ac1000a47] | committer: Thomas Guillem

VideoPlayer: call cleanUI from onStop()

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 +--
 1 file changed, 1 insertion(+), 2 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 04f707c9a..716fa876f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -676,6 +676,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             switchToAudioMode(false);
         }
 
+        cleanUI();
         stopPlayback();
 
         SharedPreferences.Editor editor = mSettings.edit();
@@ -940,8 +941,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             return;
         }
 
-        cleanUI();
-
         if (mService.isSeekable()) {
             mSavedTime = getTime();
             long length = mService.getLength();



More information about the Android mailing list