mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-12-01 12:31:45 +00:00
Created preferences activity
This commit is contained in:
24
res/values/arrays.xml
Normal file
24
res/values/arrays.xml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<string-array name="update_intervall_options">
|
||||||
|
<item>Manual</item>
|
||||||
|
<item>1 hour</item>
|
||||||
|
<item>2 hours</item>
|
||||||
|
<item>4 hours</item>
|
||||||
|
<item>8 hours</item>
|
||||||
|
<item>12 hours</item>
|
||||||
|
<item>24 hours</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<string-array name="update_intervall_values">
|
||||||
|
<item>0</item>
|
||||||
|
<item>1</item>
|
||||||
|
<item>2</item>
|
||||||
|
<item>4</item>
|
||||||
|
<item>8</item>
|
||||||
|
<item>12</item>
|
||||||
|
<item>24</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
</resources>
|
||||||
@ -78,5 +78,16 @@
|
|||||||
<string name="cancel_all_downloads_label">Cancel all downloads</string>
|
<string name="cancel_all_downloads_label">Cancel all downloads</string>
|
||||||
<string name="download_cancelled_msg">Download cancelled</string>
|
<string name="download_cancelled_msg">Download cancelled</string>
|
||||||
<string name="no_media_playing_label">No media playing</string>
|
<string name="no_media_playing_label">No media playing</string>
|
||||||
|
<string name="general_pref">General</string>
|
||||||
|
<string name="pref_pauseOnHeadsetDisconnect_sum">Pause playback when the headset is disconnected</string>
|
||||||
|
<string name="pref_followQueue_sum">Jump to next queue item when playback completes</string>
|
||||||
|
<string name="playback_pref">Playback</string>
|
||||||
|
<string name="network_pref">Network</string>
|
||||||
|
<string name="pref_autoUpdateIntervall_title">Update intervall</string>
|
||||||
|
<string name="pref_autoUpdateIntervall_sum">Specify an intervall in which the feeds are refreshed automatically or disable it</string>
|
||||||
|
<string name="pref_downloadMediaOnWifiOnly_sum">Download media files only over WiFi</string>
|
||||||
|
<string name="pref_followQueue_title">Follow queue</string>
|
||||||
|
<string name="pref_downloadMediaOnWifiOnly_title">WiFi media download</string>
|
||||||
|
<string name="pref_pauseOnHeadsetDisconnect_title">Headset disconnect</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
@ -1,9 +1,17 @@
|
|||||||
<?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" >
|
||||||
<PreferenceCategory android:title="@string/other_pref">
|
<PreferenceCategory android:title="@string/playback_pref">
|
||||||
|
<CheckBoxPreference android:key="prefPauseOnHeadsetDisconnect" android:title="@string/pref_pauseOnHeadsetDisconnect_title" android:enabled="true" android:defaultValue="true" android:summary="@string/pref_pauseOnHeadsetDisconnect_sum"/>
|
||||||
|
<CheckBoxPreference android:key="prefFollowQueue" android:title="@string/pref_followQueue_title" android:enabled="true" android:defaultValue="false" android:summary="@string/pref_followQueue_sum"/>
|
||||||
|
</PreferenceCategory><PreferenceCategory android:title="@string/network_pref">
|
||||||
|
<CheckBoxPreference android:key="prefDownloadMediaOnWifiOnly" android:title="@string/pref_downloadMediaOnWifiOnly_title" android:enabled="true" android:defaultValue="true" android:summary="@string/pref_downloadMediaOnWifiOnly_sum"/><ListPreference android:title="@string/pref_autoUpdateIntervall_title" android:summary="@string/pref_autoUpdateIntervall_sum" android:key="prefAutoUpdateIntervall" android:entryValues="@array/update_intervall_values" android:entries="@array/update_intervall_options" android:defaultValue="0"/>
|
||||||
|
|
||||||
|
</PreferenceCategory><PreferenceCategory android:title="@string/other_pref">
|
||||||
<Preference android:title="@string/version_pref"/>
|
<Preference android:title="@string/version_pref"/>
|
||||||
<Preference android:title="@string/about_pref"/>
|
<Preference android:title="@string/about_pref"/>
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
Reference in New Issue
Block a user