[Android] Remove animation for Secondary activity

Geoffrey Métais git at videolan.org
Mon May 11 19:06:03 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May 11 19:02:23 2015 +0200| [01ed08101c180ad041158814b5e4d1a24c60139e] | committer: Geoffrey Métais

Remove animation for Secondary activity

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=01ed08101c180ad041158814b5e4d1a24c60139e
---

 .../src/org/videolan/vlc/gui/SecondaryActivity.java       |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java b/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java
index 32a4f6d..0a80476 100644
--- a/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java
@@ -75,6 +75,19 @@ public class SecondaryActivity extends AudioPlayerContainerActivity {
     }
 
     @Override
+    protected void onResume() {
+        overridePendingTransition(0,0);
+        super.onResume();
+    }
+
+    @Override
+    protected void onPause() {
+        if (isFinishing())
+            overridePendingTransition(0,0);
+        super.onPause();
+    }
+
+    @Override
     public boolean onCreateOptionsMenu(Menu menu) {
         if (mFragment instanceof VideoGridFragment)
             getMenuInflater().inflate(R.menu.video_group, menu);



More information about the Android mailing list