[Android] AdvOptionsDialog: use current title for chapter selection
Thomas Guillem
git at videolan.org
Fri Jul 10 20:01:56 CEST 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jul 10 20:01:36 2015 +0200| [37c64e43c52ca9d98b17539d8e80df3e3d5b3a55] | committer: Thomas Guillem
AdvOptionsDialog: use current title for chapter selection
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=37c64e43c52ca9d98b17539d8e80df3e3d5b3a55
---
vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
index e71fc90..1782cce 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -202,7 +202,7 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
}
private void initChapterSpinner() {
- final MediaPlayer.Chapter[] chapters = mService.getChapters(0);
+ final MediaPlayer.Chapter[] chapters = mService.getChapters(mService.getTitleIdx());
int chaptersCount = chapters != null ? chapters.length : 0;
if (chaptersCount <= 1){
mChapters.setVisibility(View.GONE);
More information about the Android
mailing list