Commit 95a643fb authored by Adrien Maglo's avatar Adrien Maglo

GUI: disable the sliding menu when the audio player is fully shown

parent c50ea3b3
......@@ -892,16 +892,19 @@ public class MainActivity extends SherlockFragmentActivity {
public void onPanelOpened() {
mSlidingPane.setShadowResource(R.drawable.mini_player_top_shadow);
mAudioPlayer.setHeaderVisibilities(false, false, true, true, true);
mMenu.setSlidingEnabled(true);
}
@Override
public void onPanelOpenedEntirely() {
mSlidingPane.setShadowDrawable(null);
mMenu.setSlidingEnabled(true);
}
@Override
public void onPanelClosed() {
mAudioPlayer.setHeaderVisibilities(true, true, false, false, false);
mMenu.setSlidingEnabled(false);
}
};
......
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