|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
2 |
| -<!-- |
| 1 | +<?xml version="1.0" encoding="utf-8"?><!-- |
3 | 2 | ~ Copyright 2016 Hippo Seven
|
4 | 3 | ~
|
5 | 4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
15 | 14 | ~ limitations under the License.
|
16 | 15 | -->
|
17 | 16 |
|
18 |
| -<PreferenceScreen |
19 |
| - xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" |
20 | 18 | xmlns:app="http://schemas.android.com/apk/res-auto">
|
21 | 19 |
|
22 | 20 | <com.hippo.ehviewer.preference.SignOutPreference
|
23 | 21 | android:key="sign_out"
|
24 |
| - android:title="@string/settings_eh_sign_out" |
25 |
| - android:summary="@string/settings_eh_sign_out_summary"/> |
| 22 | + android:summary="@string/settings_eh_sign_out_summary" |
| 23 | + android:title="@string/settings_eh_sign_out" /> |
26 | 24 |
|
27 | 25 | <com.hippo.ehviewer.preference.IdentityCookiePreference
|
28 | 26 | android:key="identity_cookie"
|
29 |
| - android:title="@string/settings_eh_identity_cookies" |
30 |
| - android:summary="@string/settings_eh_identity_cookies_summary"/> |
| 27 | + android:summary="@string/settings_eh_identity_cookies_summary" |
| 28 | + android:title="@string/settings_eh_identity_cookies" /> |
31 | 29 |
|
32 | 30 | <com.hippo.preference.ListPreference
|
| 31 | + android:defaultValue="1" |
33 | 32 | android:key="gallery_site"
|
34 |
| - android:title="@string/settings_eh_gallery_site" |
35 | 33 | android:summary="%s"
|
| 34 | + android:title="@string/settings_eh_gallery_site" |
36 | 35 | app:entries="@array/gallery_site_entries"
|
37 |
| - app:entryValues="@array/gallery_site_entry_values" |
38 |
| - android:defaultValue="1"/> |
| 36 | + app:entryValues="@array/gallery_site_entry_values" /> |
39 | 37 |
|
40 | 38 | <com.hippo.ehviewer.preference.SignInRequiredActivityPreference
|
41 | 39 | android:key="u_config"
|
42 |
| - android:title="@string/settings_u_config" |
43 | 40 | android:summary="@string/settings_u_config_summary"
|
44 |
| - app:activity="com.hippo.ehviewer.ui.UConfigActivity"/> |
| 41 | + android:title="@string/settings_u_config" |
| 42 | + app:activity="com.hippo.ehviewer.ui.UConfigActivity" /> |
45 | 43 |
|
46 | 44 | <com.hippo.ehviewer.preference.SignInRequiredActivityPreference
|
47 | 45 | android:key="my_tags"
|
48 |
| - android:title="@string/settings_my_tags" |
49 | 46 | android:summary="@string/settings_my_tags_summary"
|
50 |
| - app:activity="com.hippo.ehviewer.ui.MyTagsActivity"/> |
| 47 | + android:title="@string/settings_my_tags" |
| 48 | + app:activity="com.hippo.ehviewer.ui.MyTagsActivity" /> |
51 | 49 |
|
52 | 50 | <com.hippo.preference.ListPreference
|
| 51 | + android:defaultValue="0" |
53 | 52 | android:key="theme"
|
54 |
| - android:title="@string/settings_eh_theme" |
55 | 53 | android:summary="%s"
|
| 54 | + android:title="@string/settings_eh_theme" |
56 | 55 | app:entries="@array/theme_entries"
|
57 |
| - app:entryValues="@array/theme_entry_values" |
58 |
| - android:defaultValue="0"/> |
| 56 | + app:entryValues="@array/theme_entry_values" /> |
59 | 57 |
|
60 | 58 | <com.hippo.preference.SwitchPreference
|
| 59 | + android:defaultValue="false" |
61 | 60 | android:key="apply_nav_bar_theme_color"
|
62 |
| - android:title="@string/settings_eh_apply_nav_bar_theme_color" |
63 |
| - android:defaultValue="false"/> |
| 61 | + android:title="@string/settings_eh_apply_nav_bar_theme_color" /> |
64 | 62 |
|
65 | 63 | <com.hippo.preference.ListPreference
|
| 64 | + android:defaultValue="0" |
66 | 65 | android:key="launch_page"
|
67 |
| - android:title="@string/settings_eh_launch_page" |
68 | 66 | android:summary="%s"
|
| 67 | + android:title="@string/settings_eh_launch_page" |
69 | 68 | app:entries="@array/launch_page_entries"
|
70 |
| - app:entryValues="@array/launch_page_entry_values" |
71 |
| - android:defaultValue="0"/> |
| 69 | + app:entryValues="@array/launch_page_entry_values" /> |
72 | 70 |
|
73 | 71 | <com.hippo.preference.ListPreference
|
| 72 | + android:defaultValue="0" |
74 | 73 | android:key="list_mode"
|
75 |
| - android:title="@string/settings_eh_list_mode" |
76 | 74 | android:summary="%s"
|
| 75 | + android:title="@string/settings_eh_list_mode" |
77 | 76 | app:entries="@array/list_mode_entries"
|
78 |
| - app:entryValues="@array/list_mode_entry_values" |
79 |
| - android:defaultValue="0"/> |
| 77 | + app:entryValues="@array/list_mode_entry_values" /> |
80 | 78 |
|
81 | 79 | <com.hippo.preference.ListPreference
|
| 80 | + android:defaultValue="0" |
82 | 81 | android:key="detail_size"
|
83 |
| - android:title="@string/settings_eh_detail_size" |
84 | 82 | android:summary="%s"
|
| 83 | + android:title="@string/settings_eh_detail_size" |
85 | 84 | app:entries="@array/detail_size_entries"
|
86 |
| - app:entryValues="@array/detail_size_entry_values" |
87 |
| - android:defaultValue="0"/> |
| 85 | + app:entryValues="@array/detail_size_entry_values" /> |
88 | 86 |
|
89 | 87 | <com.hippo.preference.ListPreference
|
| 88 | + android:defaultValue="1" |
90 | 89 | android:key="thumb_size"
|
91 |
| - android:title="@string/settings_eh_thumb_size" |
92 | 90 | android:summary="%s"
|
| 91 | + android:title="@string/settings_eh_thumb_size" |
93 | 92 | app:entries="@array/thumb_size_entries"
|
94 |
| - app:entryValues="@array/thumb_size_entry_values" |
95 |
| - android:defaultValue="1"/> |
| 93 | + app:entryValues="@array/thumb_size_entry_values" /> |
96 | 94 |
|
97 | 95 | <com.hippo.preference.ListPreference
|
| 96 | + android:defaultValue="0" |
98 | 97 | android:key="thumb_resolution"
|
99 |
| - android:title="@string/settings_eh_thumb_resolution" |
100 | 98 | android:summary="@string/settings_eh_thumb_resolution_summary"
|
| 99 | + android:title="@string/settings_eh_thumb_resolution" |
101 | 100 | app:entries="@array/thumb_resolution_entries"
|
102 |
| - app:entryValues="@array/thumb_resolution_entry_values" |
103 |
| - android:defaultValue="0"/> |
| 101 | + app:entryValues="@array/thumb_resolution_entry_values" /> |
104 | 102 |
|
105 | 103 | <com.hippo.preference.SwitchPreference
|
106 |
| - android:key="fix_thumb_url" |
107 |
| - android:title="@string/settings_eh_fix_thumb_url" |
108 |
| - android:defaultValue="false"/> |
| 104 | + android:defaultValue="false" |
| 105 | + android:key="fix_thumb_url" |
| 106 | + android:title="@string/settings_eh_fix_thumb_url" /> |
109 | 107 |
|
110 | 108 | <com.hippo.preference.SwitchPreference
|
| 109 | + android:defaultValue="false" |
111 | 110 | android:key="show_jpn_title"
|
112 |
| - android:title="@string/settings_eh_show_jpn_title" |
113 | 111 | android:summary="@string/settings_eh_show_jpn_title_summary"
|
114 |
| - android:defaultValue="false"/> |
| 112 | + android:title="@string/settings_eh_show_jpn_title" /> |
115 | 113 |
|
116 | 114 | <com.hippo.preference.SwitchPreference
|
| 115 | + android:defaultValue="false" |
117 | 116 | android:key="show_gallery_pages"
|
118 |
| - android:title="@string/settings_eh_show_gallery_pages" |
119 | 117 | android:summary="@string/settings_eh_show_gallery_pages_summary"
|
120 |
| - android:defaultValue="false"/> |
| 118 | + android:title="@string/settings_eh_show_gallery_pages" /> |
121 | 119 |
|
122 | 120 | <com.hippo.preference.SwitchPreference
|
| 121 | + android:defaultValue="true" |
123 | 122 | android:key="show_tag_translations"
|
124 |
| - android:title="@string/settings_eh_show_tag_translations" |
125 | 123 | android:summary="@string/settings_eh_show_tag_translations_summary"
|
126 |
| - android:defaultValue="true"/> |
| 124 | + android:title="@string/settings_eh_show_tag_translations" /> |
127 | 125 |
|
128 | 126 | <com.hippo.preference.UrlPreference
|
129 | 127 | android:key="tag_translations_source"
|
130 | 128 | android:title="@string/settings_eh_tag_translations_source"
|
131 |
| - app:url="@string/settings_eh_tag_translations_source_url"/> |
| 129 | + app:url="@string/settings_eh_tag_translations_source_url" /> |
132 | 130 |
|
133 | 131 | <com.hippo.preference.ActivityPreference
|
134 | 132 | android:key="filter"
|
135 |
| - android:title="@string/settings_eh_filter" |
136 | 133 | android:summary="@string/settings_eh_filter_summary"
|
137 |
| - app:activity="com.hippo.ehviewer.ui.FilterActivity"/> |
| 134 | + android:title="@string/settings_eh_filter" |
| 135 | + app:activity="com.hippo.ehviewer.ui.FilterActivity" /> |
| 136 | + |
| 137 | + <com.hippo.preference.SwitchPreference |
| 138 | + android:defaultValue="true" |
| 139 | + android:key="show_gallery_comment" |
| 140 | + android:title="@string/settings_eh_show_gallery_comment" /> |
138 | 141 |
|
139 | 142 | <com.hippo.preference.ActivityPreference
|
140 | 143 | android:key="blickList"
|
141 |
| - android:title="@string/settings_eh_blacklist" |
142 | 144 | android:summary="@string/settings_eh_blacklist_summary"
|
143 |
| - app:activity="com.hippo.ehviewer.ui.BlackListActivity"/> |
| 145 | + android:title="@string/settings_eh_blacklist" |
| 146 | + app:activity="com.hippo.ehviewer.ui.BlackListActivity" /> |
144 | 147 |
|
145 | 148 | <com.hippo.preference.SwitchPreference
|
| 149 | + android:defaultValue="false" |
146 | 150 | android:key="cellular_network_warning"
|
147 |
| - android:title="@string/settings_eh_cellular_network_warning" |
148 |
| - android:defaultValue="false"/> |
| 151 | + android:title="@string/settings_eh_cellular_network_warning" /> |
149 | 152 |
|
150 | 153 | </PreferenceScreen>
|
0 commit comments