[Android] Display chapter description instead of number

Geoffrey Métais git at videolan.org
Mon Mar 30 19:29:21 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 30 19:28:40 2015 +0200| [7c05ab12b6a42d96fd018e4b5345e5bfc221ce24] | committer: Geoffrey Métais

Display chapter description instead of number

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

 vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java |    4 ++--
 1 file changed, 2 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 f3baff5..fa3c8ad 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java
@@ -182,9 +182,9 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
             mChaptersTitle.setVisibility(View.GONE);
             return;
         }
-        ArrayAdapter<Integer> adapter = new ArrayAdapter<Integer>(getActivity(), android.R.layout.simple_spinner_item);
+        ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_item);
         for (int i = 0 ; i < chaptersCount ; ++i)
-            adapter.insert(i, i);
+            adapter.insert(mLibVLC.getChapterDescription(i), i);
         adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
         mChapters.setAdapter(adapter);
         mChapters.setSelection(mLibVLC.getChapter());



More information about the Android mailing list