aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml/settings_cache.xml
blob: 248572ca65e8269fc32d04b5aa00b04a2e8307e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:myns="http://schemas.android.com/apk/res/github.daneren2005.dsub"
	android:title="@string/settings.cache_screen_title">

	<PreferenceCategory
		android:title="@string/settings.network_title">

		<ListPreference
			android:title="@string/settings.max_bitrate_wifi"
			android:key="maxBitrateWifi"
			android:defaultValue="0"
			android:entryValues="@array/maxBitrateValues"
			android:entries="@array/maxBitrateNames"/>

		<ListPreference
			android:title="@string/settings.max_bitrate_mobile"
			android:key="maxBitrateMobile"
			android:defaultValue="0"
			android:entryValues="@array/maxBitrateValues"
			android:entries="@array/maxBitrateNames"/>

		<ListPreference
			android:title="@string/settings.max_video_bitrate_wifi"
			android:key="maxVideoBitrateWifi"
			android:defaultValue="0"
			android:entryValues="@array/maxVideoBitrateValues"
			android:entries="@array/maxVideoBitrateNames"/>

		<ListPreference
			android:title="@string/settings.max_video_bitrate_mobile"
			android:key="maxVideoBitrateMobile"
			android:defaultValue="0"
			android:entryValues="@array/maxVideoBitrateValues"
			android:entries="@array/maxVideoBitrateNames"/>

		<CheckBoxPreference
			android:title="@string/settings.wifi_required_title"
			android:summary="@string/settings.wifi_required_summary"
			android:key="wifiRequiredForDownload"
			android:defaultValue="false"/>

		<ListPreference
			android:title="@string/settings.network_timeout_title"
			android:key="networkTimeout"
			android:defaultValue="15000"
			android:entryValues="@array/networkTimeoutValues"
			android:entries="@array/networkTimeoutNames"/>
	</PreferenceCategory>

	<PreferenceCategory
		android:title="@string/settings.cache_title">

		<EditTextPreference
			android:title="@string/settings.cache_size"
			android:key="cacheSize"
			android:defaultValue="2000"
			android:digits="0123456789"/>

		<github.daneren2005.dsub.view.CacheLocationPreference
			android:title="@string/settings.cache_location"
			android:key="cacheLocation"/>

		<ListPreference
			android:title="@string/settings.preload_wifi"
			android:key="preloadCountWifi"
			android:defaultValue="3"
			android:entryValues="@array/preloadCountValues"
			android:entries="@array/preloadCountNames"/>

		<ListPreference
			android:title="@string/settings.preload_mobile"
			android:key="preloadCountMobile"
			android:defaultValue="3"
			android:entryValues="@array/preloadCountValues"
			android:entries="@array/preloadCountNames"/>

		<Preference
			android:key="clearCache"
			android:title="@string/settings.cache_clear"
			android:persistent="false"/>
	</PreferenceCategory>

	<PreferenceCategory
		android:title="@string/settings.other_title">

		<CheckBoxPreference
			android:title="@string/settings.hide_media_title"
			android:summary="@string/settings.hide_media_summary"
			android:key="hideMedia"
			android:defaultValue="false"/>

		<CheckBoxPreference
			android:title="@string/settings.screen_lit_title"
			android:summary="@string/settings.screen_lit_summary"
			android:key="screenLitOnDownload"
			android:defaultValue="true"/>
	</PreferenceCategory>
</PreferenceScreen>