Commit 4e800b0c authored by Alexandre Perraud's avatar Alexandre Perraud

Preferences : Developer reorganization

parent 13cc9063
......@@ -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"
......
/*
* *************************************************************************
* 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 )
......
......@@ -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);
......
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