[Android] VideoPlayerActivity: slight simplification
Edward Wang
git at videolan.org
Fri Jan 18 04:43:13 CET 2013
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Jan 17 22:43:08 2013 -0500| [0d313eec41e770abc4de5c677dd73d8c98131ce8] | committer: Edward Wang
VideoPlayerActivity: slight simplification
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=0d313eec41e770abc4de5c677dd73d8c98131ce8
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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 0c73ff6..fd5dea7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1235,8 +1235,7 @@ public class VideoPlayerActivity extends Activity {
private void setESTrackLists() {
if(mAudioTracksList == null) {
- Map<Integer, String> audioTracks = mLibVLC.getAudioTrackDescription();
- if (audioTracks != null && audioTracks.size() > 1) {
+ if (mLibVLC.getAudioTracksCount() > 1) {
mAudioTracksList = mLibVLC.getAudioTrackDescription();
mAudioTrack.setOnClickListener(mAudioTrackListener);
mAudioTrack.setVisibility(View.VISIBLE);
More information about the Android
mailing list