[Android] VideoPlayerActivity: do not show audio track choice if there is only one track

Sébastien Toque git at videolan.org
Sun Jan 20 10:45:00 CET 2013


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Sun Jan 20 10:44:39 2013 +0100| [ffe44ab8c716b3ed22756cc60184133a6974abf6] | committer: Sébastien Toque

VideoPlayerActivity: do not show audio track choice if there is only one track

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=ffe44ab8c716b3ed22756cc60184133a6974abf6
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index fd5dea7..581c839 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1235,7 +1235,7 @@ public class VideoPlayerActivity extends Activity {
 
     private void setESTrackLists() {
         if(mAudioTracksList == null) {
-            if (mLibVLC.getAudioTracksCount() > 1) {
+            if (mLibVLC.getAudioTracksCount() > 2) {
                 mAudioTracksList = mLibVLC.getAudioTrackDescription();
                 mAudioTrack.setOnClickListener(mAudioTrackListener);
                 mAudioTrack.setVisibility(View.VISIBLE);



More information about the Android mailing list