Commit 7cb170b8 authored by Sébastien Toque's avatar Sébastien Toque

move list up when mini player is shown

parent a4dc5d54
......@@ -43,6 +43,12 @@
android:singleLine="true"
android:textColor="#FFFFFFFF" />
</RelativeLayout>
<View
android:id="@+id/audio_mini_player_filling"
android:layout_width="fill_parent"
android:layout_height="60dp"
android:visibility="gone" />
</org.videolan.vlc.widget.ContentLinearLayout>
<FrameLayout
......
......@@ -106,6 +106,7 @@ public class MainActivity extends SherlockFragmentActivity {
private View mInfoLayout;
private ProgressBar mInfoProgress;
private TextView mInfoText;
private View mAudioPlayerFilling;
private String mCurrentFragment;
private SharedPreferences mSettings;
......@@ -191,6 +192,7 @@ public class MainActivity extends SherlockFragmentActivity {
mInfoLayout = v_main.findViewById(R.id.info_layout);
mInfoProgress = (ProgressBar) v_main.findViewById(R.id.info_progress);
mInfoText = (TextView) v_main.findViewById(R.id.info_text);
mAudioPlayerFilling = v_main.findViewById(R.id.audio_mini_player_filling);
/* Set up the action bar */
prepareActionBar();
......@@ -743,6 +745,7 @@ public class MainActivity extends SherlockFragmentActivity {
// Open the pane only if is entirely opened.
if (mSlidingPane.getState() == mSlidingPane.STATE_OPENED_ENTIRELY)
mSlidingPane.openPane();
mAudioPlayerFilling.setVisibility(View.VISIBLE);
}
/**
......@@ -750,6 +753,7 @@ public class MainActivity extends SherlockFragmentActivity {
*/
public void hideMiniPlayer() {
mSlidingPane.openPaneEntirely();
mAudioPlayerFilling.setVisibility(View.GONE);
}
private final SlidingPaneLayout.PanelSlideListener mPanelSlideListener
......
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