Commit 7c965f82 authored by Adrien Maglo's avatar Adrien Maglo

Audio player: slide down the audio player on back key pressed when it is entirely shown

parent 891821ef
......@@ -406,6 +406,13 @@ public class MainActivity extends SherlockFragmentActivity {
// Slide down the mini player if it is shown entirely.
if (mSlidingPane.getState() == mSlidingPane.STATE_CLOSED) {
// If it's the directory view, a "backpressed" action shows a parent.
if (mCurrentFragment.equals("directories")) {
DirectoryViewFragment directoryView = (DirectoryViewFragment) getFragment(mCurrentFragment);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment