[Android] Main activity: slide down the audio player on action bar home button press

Adrien Maglo git at videolan.org
Thu Jan 30 18:49:18 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu Jan 30 18:49:10 2014 +0100| [70ee34cabd06d0cc18a2538a2b22adaf099ce7c0] | committer: Adrien Maglo

Main activity: slide down the audio player on action bar home button press

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

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 84b0f45..ae589f1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -615,6 +615,10 @@ public class MainActivity extends SherlockFragmentActivity {
                 onSearchRequested();
                 break;
             case android.R.id.home:
+                // Slide down the audio player.
+                if (slideDownAudioPlayer())
+                    break;
+
                 // If it's the albums songs view, a "backpressed" action shows .
                 if (secondaryFragments.contains(mCurrentFragment)) {
                     popSecondaryFragment();



More information about the Android mailing list