[Android] Preferences : Developer reorganization

Alexandre Perraud git at videolan.org
Thu Sep 22 15:17:58 CEST 2016


vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Tue Sep 20 10:39:39 2016 +0200| [4e800b0cd4667c67d256143567c95af58bf1074e] | committer: Alexandre Perraud

Preferences : Developer reorganization

> https://code.videolan.org/videolan/vlc-android/commit/4e800b0cd4667c67d256143567c95af58bf1074e
---

 vlc-android/res/xml/preferences_dev.xml                            | 7 -------
 .../gui/preferences/{Developer.java => PreferencesDeveloper.java}  | 5 ++---
 .../src/org/videolan/vlc/gui/preferences/PreferencesFragment.java  | 2 +-
 3 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/vlc-android/res/xml/preferences_dev.xml b/vlc-android/res/xml/preferences_dev.xml
index 2750caa..bae5607 100644
--- a/vlc-android/res/xml/preferences_dev.xml
+++ b/vlc-android/res/xml/preferences_dev.xml
@@ -2,13 +2,6 @@
 
 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
     android:title="@string/developer_prefs_category" >
-    <ListPreference
-        android:defaultValue="-1"
-        android:entries="@array/dev_hardware_decoder_list"
-        android:entryValues="@array/dev_hardware_decoder_values"
-        android:key="dev_hardware_decoder"
-        android:summary="@string/dev_hardware_decoder_summary"
-        android:title="@string/dev_hardware_decoder" />
     <CheckBoxPreference
         android:defaultValue="true"
         android:key="enable_verbose_mode"
diff --git a/vlc-android/src/org/videolan/vlc/gui/preferences/Developer.java b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesDeveloper.java
similarity index 94%
rename from vlc-android/src/org/videolan/vlc/gui/preferences/Developer.java
rename to vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesDeveloper.java
index e10c392..67c9a0e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/preferences/Developer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesDeveloper.java
@@ -1,6 +1,6 @@
 /*
  * *************************************************************************
- *  Developer.java
+ *  PreferencesDeveloper.java
  * **************************************************************************
  *  Copyright © 2015 VLC authors and VideoLAN
  *  Author: Geoffrey Métais
@@ -37,7 +37,7 @@ import org.videolan.vlc.VLCApplication;
 import org.videolan.vlc.gui.DebugLogActivity;
 import org.videolan.vlc.util.VLCInstance;
 
-public class Developer extends BasePreferenceFragment implements SharedPreferences.OnSharedPreferenceChangeListener {
+public class PreferencesDeveloper extends BasePreferenceFragment implements SharedPreferences.OnSharedPreferenceChangeListener {
     @Override
     protected int getXml() {
         return R.xml.preferences_dev;
@@ -82,7 +82,6 @@ public class Developer extends BasePreferenceFragment implements SharedPreferenc
     @Override
     public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
         switch (key){
-            case "dev_hardware_decoder":
             case "enable_verbose_mode":
                 VLCInstance.restart();
                 if (getActivity() != null )
diff --git a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesFragment.java b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesFragment.java
index 896f228..44a0146 100644
--- a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesFragment.java
@@ -107,7 +107,7 @@ public class PreferencesFragment extends BasePreferenceFragment implements Share
                 loadFragment(new PreferencesAdvanced());
                 break;
             case "dev_category":
-                loadFragment(new Developer());
+                loadFragment(new PreferencesDeveloper());
                 break;
             case PLAYBACK_HISTORY:
                 getActivity().setResult(PreferencesActivity.RESULT_RESTART);



More information about the Android mailing list