Trying to fix a crash in settings (again)

This commit is contained in:
len 2016-11-15 19:12:03 +01:00
parent 5e6cf9fb02
commit 453f742732
4 changed files with 35 additions and 26 deletions

View File

@ -11,13 +11,16 @@
android:defaultValue="true" android:defaultValue="true"
android:key="acra.enable" android:key="acra.enable"
android:summary="@string/pref_acra_summary" android:summary="@string/pref_acra_summary"
android:title="@string/pref_enable_acra" android:textOff="@string/pref_enable_acra"
app:showText="false"/> android:textOn="@string/pref_enable_acra"
android:title="@string/pref_enable_acra" />
<SwitchPreference <SwitchPreference
android:defaultValue="false" android:defaultValue="false"
android:key="@string/pref_enable_automatic_updates_key" android:key="@string/pref_enable_automatic_updates_key"
android:summary="@string/pref_enable_automatic_updates_summary" android:summary="@string/pref_enable_automatic_updates_summary"
android:textOff="@string/pref_enable_automatic_updates"
android:textOn="@string/pref_enable_automatic_updates"
android:title="@string/pref_enable_automatic_updates" android:title="@string/pref_enable_automatic_updates"
app:showText="false"/> app:showText="false"/>

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceScreen <PreferenceScreen
android:key="downloads_screen" android:key="downloads_screen"
@ -14,8 +13,9 @@
<SwitchPreference <SwitchPreference
android:defaultValue="true" android:defaultValue="true"
android:key="@string/pref_download_only_over_wifi_key" android:key="@string/pref_download_only_over_wifi_key"
android:title="@string/pref_download_only_over_wifi" android:textOff="@string/pref_download_only_over_wifi"
app:showText="false"/> android:textOn="@string/pref_download_only_over_wifi"
android:title="@string/pref_download_only_over_wifi" />
<eu.kanade.tachiyomi.widget.preference.IntListPreference <eu.kanade.tachiyomi.widget.preference.IntListPreference
android:defaultValue="1" android:defaultValue="1"
@ -32,8 +32,9 @@
<SwitchPreference <SwitchPreference
android:defaultValue="false" android:defaultValue="false"
android:key="@string/pref_remove_after_marked_as_read_key" android:key="@string/pref_remove_after_marked_as_read_key"
android:title="@string/pref_remove_after_marked_as_read" android:textOff="@string/pref_remove_after_marked_as_read"
app:showText="false"/> android:textOn="@string/pref_remove_after_marked_as_read"
android:title="@string/pref_remove_after_marked_as_read" />
<eu.kanade.tachiyomi.widget.preference.IntListPreference <eu.kanade.tachiyomi.widget.preference.IntListPreference
android:defaultValue="-1" android:defaultValue="-1"

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceScreen <PreferenceScreen
android:key="general_screen" android:key="general_screen"
@ -51,8 +50,9 @@
<SwitchPreference <SwitchPreference
android:defaultValue="false" android:defaultValue="false"
android:key="@string/pref_update_only_non_completed_key" android:key="@string/pref_update_only_non_completed_key"
android:title="@string/pref_update_only_non_completed" android:textOff="@string/pref_update_only_non_completed"
app:showText="false"/> android:textOn="@string/pref_update_only_non_completed"
android:title="@string/pref_update_only_non_completed" />
</PreferenceScreen> </PreferenceScreen>

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceScreen <PreferenceScreen
android:key="reader_screen" android:key="reader_screen"
@ -56,43 +55,49 @@
android:summary="%s" /> android:summary="%s" />
<SwitchPreference <SwitchPreference
android:textOff="@string/pref_fullscreen"
android:textOn="@string/pref_fullscreen"
android:title="@string/pref_fullscreen" android:title="@string/pref_fullscreen"
android:key="@string/pref_fullscreen_key" android:key="@string/pref_fullscreen_key"
android:defaultValue="true" android:defaultValue="true" />
app:showText="false"/>
<SwitchPreference <SwitchPreference
android:textOff="@string/pref_enable_transitions"
android:textOn="@string/pref_enable_transitions"
android:title="@string/pref_enable_transitions" android:title="@string/pref_enable_transitions"
android:key="@string/pref_enable_transitions_key" android:key="@string/pref_enable_transitions_key"
android:defaultValue="true" android:defaultValue="true" />
app:showText="false"/>
<SwitchPreference <SwitchPreference
android:textOff="@string/pref_show_page_number"
android:textOn="@string/pref_show_page_number"
android:title="@string/pref_show_page_number" android:title="@string/pref_show_page_number"
android:key="@string/pref_show_page_number_key" android:key="@string/pref_show_page_number_key"
android:defaultValue="true" android:defaultValue="true" />
app:showText="false"/>
<SwitchPreference <SwitchPreference
android:textOff="@string/pref_keep_screen_on"
android:textOn="@string/pref_keep_screen_on"
android:title="@string/pref_keep_screen_on" android:title="@string/pref_keep_screen_on"
android:key="@string/pref_keep_screen_on_key" android:key="@string/pref_keep_screen_on_key"
android:defaultValue="true" android:defaultValue="true" />
app:showText="false"/>
<PreferenceCategory <PreferenceCategory
android:title="@string/pref_reader_navigation"> android:title="@string/pref_reader_navigation">
<SwitchPreference <SwitchPreference
android:textOff="@string/pref_read_with_tapping"
android:textOn="@string/pref_read_with_tapping"
android:title="@string/pref_read_with_tapping" android:title="@string/pref_read_with_tapping"
android:key="@string/pref_read_with_tapping_key" android:key="@string/pref_read_with_tapping_key"
android:defaultValue="true" android:defaultValue="true" />
app:showText="false"/>
<SwitchPreference <SwitchPreference
android:textOff="@string/pref_read_with_volume_keys"
android:textOn="@string/pref_read_with_volume_keys"
android:title="@string/pref_read_with_volume_keys" android:title="@string/pref_read_with_volume_keys"
android:key="@string/pref_read_with_volume_keys_key" android:key="@string/pref_read_with_volume_keys_key"
android:defaultValue="false" android:defaultValue="false" />
app:showText="false"/>
</PreferenceCategory> </PreferenceCategory>