[Android] Fix initial focus in Adv options dialog

Geoffrey Métais git at videolan.org
Wed Apr 20 11:51:12 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 20 11:49:32 2016 +0200| [1d7c28ea95c2b2d980823f67a0784468236d4c1b] | committer: Geoffrey Métais

Fix initial focus in Adv options dialog

> https://code.videolan.org/videolan/vlc-android/commit/1d7c28ea95c2b2d980823f67a0784468236d4c1b
---

 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 3f9a8ca..aca33d4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -627,7 +627,7 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
     private class AdvOptionsAdapter extends RecyclerView.Adapter<AdvOptionsAdapter.ViewHolder> {
 
         private ArrayList<Option> mList = new ArrayList<>();
-        private int mSelection = -1;
+        private int mSelection = 0;
 
         public AdvOptionsAdapter() {
             SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(AdvOptionsDialog.this.getContext());



More information about the Android mailing list