Added reset button but working as intended for theme.

This commit is contained in:
Vincent Tanumihardja 2022-10-26 17:09:53 +11:00 committed by TobiGr
parent 3e40fe3ea9
commit 93cef624c8
7 changed files with 19 additions and 38 deletions

View file

@ -223,7 +223,7 @@
<string name="prefer_descriptive_audio_key">prefer_descriptive_audio</string>
<string name="last_resize_mode">last_resize_mode</string>
<!-- RESET ONLY -->
<string name="reset_pref_screen_key">reset_pref_screen_key</string>
<string name="reset_settings">reset_settings</string>
<!-- DEBUG ONLY -->
<string name="debug_pref_screen_key">debug_pref_screen_key</string>

View file

@ -71,4 +71,9 @@
android:title="@string/create_error_notification"
app:singleLineTitle="false"
app:iconSpaceReserved="false" />
<Preference
android:icon="@drawable/ic_replay"
android:key="@string/reset_settings"
android:title="@string/settings_category_reset_title"
app:iconSpaceReserved="false" />
</PreferenceScreen>

View file

@ -53,12 +53,4 @@
android:key="@string/debug_pref_screen_key"
android:title="@string/settings_category_debug_title"
app:iconSpaceReserved="false" />
<PreferenceScreen
android:fragment="org.schabi.newpipe.settings.ResetSettingsFragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:icon="@drawable/ic_replay"
android:key="@string/reset_pref_screen_key"
android:title="@string/settings_category_reset_title"
app:iconSpaceReserved="false" />
</PreferenceScreen>

View file

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
</PreferenceScreen>