[Android] PreferencesActivity: set the default to show the user as well

Edward Wang git at videolan.org
Sun Dec 16 01:50:28 CET 2012


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sat Dec 15 19:27:03 2012 -0500| [a2fb8a3f6cc64e5d5245065ee6366cc8b9b534c4] | committer: Edward Wang

PreferencesActivity: set the default to show the user as well

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

 vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
index 5172f6f..772c808 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
@@ -171,6 +171,10 @@ public class PreferencesActivity extends PreferenceActivity {
         int aoutEntriesIdValues = Util.isGingerbreadOrLater() ? R.array.aouts_values : R.array.aouts_values_froyo;
         aoutPref.setEntries(aoutEntriesId);
         aoutPref.setEntryValues(aoutEntriesIdValues);
+        if(Util.isGingerbreadOrLater())
+            aoutPref.setDefaultValue(2/*AOUT_OPENSLES*/);
+        else
+            aoutPref.setDefaultValue(0/*AOUT_AUDIOTRACK_JAVA*/);
         aoutPref.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
             @Override
             public boolean onPreferenceChange(Preference preference, Object newValue) {



More information about the Android mailing list