[Android] Remove video player activity animations

Geoffrey Métais git at videolan.org
Thu Oct 12 09:44:01 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Oct 12 09:43:37 2017 +0200| [575cae15ca544acaad763cbde08a065f0e146e2f] | committer: Geoffrey Métais

Remove video player activity animations

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

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java        | 7 +++++--
 1 file changed, 5 insertions(+), 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 5c46f828e..5ad75dfe9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -509,6 +509,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
 
     @Override
     protected void onResume() {
+        overridePendingTransition(0,0);
         super.onResume();
         mShowingDialog = false;
         /*
@@ -571,9 +572,11 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
     @TargetApi(Build.VERSION_CODES.LOLLIPOP)
     @Override
     protected void onPause() {
-        super.onPause();
-        if (!isFinishing())
+        if (isFinishing())
+            overridePendingTransition(0, 0);
+        else
             hideOverlay(true);
+        super.onPause();
         setHudClickListeners(false);
 
         /* Stop the earliest possible to avoid vout error */



More information about the Android mailing list