Removed misc settings

This commit is contained in:
ByteHamster 2018-04-10 23:41:41 +02:00
parent 8ad9ef6c19
commit 5a2dca2840
7 changed files with 15 additions and 29 deletions

View File

@ -143,8 +143,6 @@ public class PreferenceActivity extends AppCompatActivity {
return R.string.user_interface_label; return R.string.user_interface_label;
case R.xml.preferences_services: case R.xml.preferences_services:
return R.string.services_label; return R.string.services_label;
case R.xml.preferences_miscellaneous:
return R.string.miscellaneous_pref;
default: default:
return R.string.settings_label; return R.string.settings_label;
} }

View File

@ -79,7 +79,6 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc
private static final String PREF_SCREEN_DOWNLOADS = "prefScreenDownloads"; private static final String PREF_SCREEN_DOWNLOADS = "prefScreenDownloads";
private static final String PREF_SCREEN_SERVICES = "prefScreenServices"; private static final String PREF_SCREEN_SERVICES = "prefScreenServices";
private static final String PREF_SCREEN_STORAGE = "prefScreenStorage"; private static final String PREF_SCREEN_STORAGE = "prefScreenStorage";
private static final String PREF_SCREEN_MISCELLANEOUS = "prefScreenMiscellaneous";
private static final String PREF_FLATTR_SETTINGS = "prefFlattrSettings"; private static final String PREF_FLATTR_SETTINGS = "prefFlattrSettings";
private static final String PREF_FLATTR_AUTH = "pref_flattr_authenticate"; private static final String PREF_FLATTR_AUTH = "pref_flattr_authenticate";
@ -155,8 +154,6 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc
openScreen(R.xml.preferences_services, activity)); openScreen(R.xml.preferences_services, activity));
ui.findPreference(PREF_SCREEN_STORAGE).setOnPreferenceClickListener(preference -> ui.findPreference(PREF_SCREEN_STORAGE).setOnPreferenceClickListener(preference ->
openScreen(R.xml.preferences_storage, activity)); openScreen(R.xml.preferences_storage, activity));
ui.findPreference(PREF_SCREEN_MISCELLANEOUS).setOnPreferenceClickListener(preference ->
openScreen(R.xml.preferences_miscellaneous, activity));
} }
/* /*
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {

View File

@ -28,9 +28,9 @@
android:icon="@drawable/ic_filter_grey600_24dp" /> android:icon="@drawable/ic_filter_grey600_24dp" />
<Preference <Preference
android:key="prefScreenMiscellaneous" android:key="statistics"
android:title="@string/miscellaneous_pref" android:title="@string/statistics_label"
android:icon="@drawable/ic_cast_disconnect_grey600_36dp" /> android:icon="@drawable/stat_notify_sync" />
<PreferenceCategory android:title="@string/project_pref"> <PreferenceCategory android:title="@string/project_pref">
<Preference <Preference

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<Preference
android:key="statistics"
android:title="@string/statistics_label"/>
<PreferenceCategory android:title="@string/experimental_pref">
<de.danoeh.antennapod.preferences.SwitchCompatPreference
android:defaultValue="false"
android:enabled="true"
android:key="prefCast"
android:summary="@string/pref_cast_message"
android:title="@string/pref_cast_title"/>
<Preference
android:key="importExport"
android:title="@string/import_export"/>
</PreferenceCategory>
</PreferenceScreen>

View File

@ -108,4 +108,13 @@
android:summary="@string/pref_sonic_message" android:summary="@string/pref_sonic_message"
android:title="@string/pref_sonic_title"/> android:title="@string/pref_sonic_title"/>
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/experimental_pref">
<de.danoeh.antennapod.preferences.SwitchCompatPreference
android:defaultValue="false"
android:enabled="true"
android:key="prefCast"
android:summary="@string/pref_cast_message"
android:title="@string/pref_cast_title"/>
</PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>

View File

@ -36,5 +36,8 @@
<Preference <Preference
android:key="prefHtmlExport" android:key="prefHtmlExport"
android:title="@string/html_export_label"/> android:title="@string/html_export_label"/>
<Preference
android:key="importExport"
android:title="@string/import_export"/>
</PreferenceCategory> </PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>

View File

@ -309,7 +309,6 @@
<string name="services_label">Services</string> <string name="services_label">Services</string>
<string name="flattr_label">Flattr</string> <string name="flattr_label">Flattr</string>
<string name="flattr_summary">Micropayment service</string> <string name="flattr_summary">Micropayment service</string>
<string name="miscellaneous_pref">Miscellaneous</string>
<string name="data_usage">Data usage</string> <string name="data_usage">Data usage</string>
<string name="download_pref_details">Details</string> <string name="download_pref_details">Details</string>
<string name="import_export_pref">Import/Export</string> <string name="import_export_pref">Import/Export</string>