Commit 7c05ab12 authored by Geoffrey Métais's avatar Geoffrey Métais

Display chapter description instead of number

parent 43472557
......@@ -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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment