Trying to fix a crash in settings

This commit is contained in:
len 2016-11-15 17:48:51 +01:00
parent 979a5c8c16
commit 83349fc72d
5 changed files with 38 additions and 19 deletions

View File

@ -1,5 +1,6 @@
<?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="about_screen" android:key="about_screen"
@ -10,13 +11,15 @@
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:title="@string/pref_enable_acra"
app:showText="false"/>
<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:title="@string/pref_enable_automatic_updates"/> android:title="@string/pref_enable_automatic_updates"
app:showText="false"/>
<Preference <Preference
android:key="@string/pref_version" android:key="@string/pref_version"

View File

@ -1,5 +1,6 @@
<?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"
@ -13,7 +14,8 @@
<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:title="@string/pref_download_only_over_wifi"
app:showText="false"/>
<eu.kanade.tachiyomi.widget.preference.IntListPreference <eu.kanade.tachiyomi.widget.preference.IntListPreference
android:defaultValue="1" android:defaultValue="1"
@ -30,7 +32,8 @@
<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:title="@string/pref_remove_after_marked_as_read"
app:showText="false"/>
<eu.kanade.tachiyomi.widget.preference.IntListPreference <eu.kanade.tachiyomi.widget.preference.IntListPreference
android:defaultValue="-1" android:defaultValue="-1"

View File

@ -1,5 +1,6 @@
<?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"
@ -50,7 +51,8 @@
<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:title="@string/pref_update_only_non_completed"
app:showText="false"/>
</PreferenceScreen> </PreferenceScreen>

View File

@ -1,5 +1,6 @@
<?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"
@ -57,22 +58,26 @@
<SwitchPreference <SwitchPreference
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: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: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: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">
@ -80,12 +85,14 @@
<SwitchPreference <SwitchPreference
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: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>

View File

@ -1,5 +1,6 @@
<?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="sync_screen" android:key="sync_screen"
@ -9,18 +10,21 @@
<SwitchPreference <SwitchPreference
android:key="@string/pref_auto_update_manga_sync_key" android:key="@string/pref_auto_update_manga_sync_key"
android:title="@string/pref_auto_update_manga_sync" android:title="@string/pref_auto_update_manga_sync"
android:defaultValue="true"/> android:defaultValue="true"
app:showText="false"/>
<SwitchPreference <SwitchPreference
android:key="@string/pref_ask_update_manga_sync_key" android:key="@string/pref_ask_update_manga_sync_key"
android:title="@string/pref_ask_update_manga_sync" android:title="@string/pref_ask_update_manga_sync"
android:defaultValue="false" android:defaultValue="false"
android:dependency="@string/pref_auto_update_manga_sync_key"/> android:dependency="@string/pref_auto_update_manga_sync_key"
app:showText="false"/>
<PreferenceCategory <PreferenceCategory
android:key="@string/pref_category_manga_sync_accounts_key" android:key="@string/pref_category_manga_sync_accounts_key"
android:title="@string/services" android:title="@string/services"
android:persistent="false"/> android:persistent="false"
app:showText="false"/>
</PreferenceScreen> </PreferenceScreen>