Commit 49e03fa8 authored by Geoffrey Métais's avatar Geoffrey Métais

Fix presentation mode

parent ebc51ff8
......@@ -1250,6 +1250,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
* @param duration
*/
private void showInfo(String text, int duration) {
if (mPresentation == null)
mVerticalBar.setVisibility(View.INVISIBLE);
mInfo.setVisibility(View.VISIBLE);
mInfo.setText(text);
......@@ -1258,6 +1259,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
}
private void showInfo(int textid, int duration) {
if (mPresentation == null)
mVerticalBar.setVisibility(View.INVISIBLE);
mInfo.setVisibility(View.VISIBLE);
mInfo.setText(textid);
......@@ -1270,6 +1272,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
* @param text
*/
private void showInfo(String text) {
if (mPresentation == null)
mVerticalBar.setVisibility(View.INVISIBLE);
mHandler.removeMessages(FADE_OUT_INFO);
mInfo.setVisibility(View.VISIBLE);
......@@ -1298,11 +1301,13 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
VideoPlayerActivity.this, android.R.anim.fade_out));
mInfo.setVisibility(View.INVISIBLE);
if (mPresentation == null) {
if (mVerticalBar.getVisibility() == View.VISIBLE)
mVerticalBar.startAnimation(AnimationUtils.loadAnimation(
VideoPlayerActivity.this, android.R.anim.fade_out));
mVerticalBar.setVisibility(View.INVISIBLE);
}
}
private OnAudioFocusChangeListener mAudioFocusListener = !LibVlcUtil.isFroyoOrLater() ? null :
new OnAudioFocusChangeListener() {
......
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