[Android] Audio player: fix the action bar showing and hiding for APIs before version 11

Adrien Maglo git at videolan.org
Thu Nov 28 16:37:48 CET 2013


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu Nov 28 16:37:32 2013 +0100| [fd16d97b1f4af8476e81c5fcf37633ac3232dfe0] | committer: Adrien Maglo

Audio player: fix the action bar showing and hiding for APIs before version 11

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

 .../src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java        |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
index fdc8544..04f558c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
@@ -213,7 +213,7 @@ public class AudioPlayerFragment extends SherlockFragment implements IAudioPlaye
         super.onResume();
         MainActivity activity = (MainActivity) getActivity();
         activity.setMiniPlayerKeepHidden(true);
-        activity.getActionBar().hide();
+        getSherlockActivity().getSupportActionBar().hide();
         mAudioController.addAudioPlayer(this);
     }
 
@@ -222,7 +222,7 @@ public class AudioPlayerFragment extends SherlockFragment implements IAudioPlaye
         super.onPause();
         MainActivity activity = (MainActivity) getActivity();
         activity.setMiniPlayerKeepHidden(false);
-        activity.getActionBar().show();
+        getSherlockActivity().getSupportActionBar().show();
         mAudioController.removeAudioPlayer(this);
     }
 



More information about the Android mailing list