[Android] Hide audio delay option on release
Geoffrey Métais
git at videolan.org
Tue Feb 24 11:11:21 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 24 10:42:23 2015 +0100| [12b2da15fb1eb68025d2b244954720092d87f319] | committer: Geoffrey Métais
Hide audio delay option on release
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=12b2da15fb1eb68025d2b244954720092d87f319
---
.../src/org/videolan/vlc/gui/video/AdvOptionsDialog.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java
index 94a6e84..830aa40 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java
@@ -40,6 +40,7 @@ import android.widget.SeekBar;
import android.widget.TextView;
import org.videolan.libvlc.LibVLC;
+import org.videolan.vlc.BuildConfig;
import org.videolan.vlc.R;
import org.videolan.vlc.VLCApplication;
import org.videolan.vlc.gui.dialogs.AudioDelayDialog;
@@ -131,15 +132,19 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
mJumpTitle.setOnClickListener(this);
- mAudioDelay.setOnClickListener(this);
mSpuDelay.setOnClickListener(this);
mReset.setOnFocusChangeListener(mFocusListener);
mSleepTime.setOnFocusChangeListener(mFocusListener);
mSleepCancel.setOnFocusChangeListener(mFocusListener);
mJumpTitle.setOnFocusChangeListener(mFocusListener);
- mAudioDelay.setOnFocusChangeListener(mFocusListener);
mSpuDelay.setOnFocusChangeListener(mFocusListener);
+ if (BuildConfig.DEBUG) { //Hide audio delay option for now, it is not usable yet.
+ mAudioDelay.setOnClickListener(this);
+ mAudioDelay.setOnFocusChangeListener(mFocusListener);
+ } else {
+ mAudioDelay.setVisibility(View.GONE);
+ }
getDialog().setCancelable(true);
mHandler.sendEmptyMessage(TOGGLE_CANCEL);
More information about the Android
mailing list