Added defaultt values

master
Max Ammann 2016-06-14 15:49:18 +02:00
parent 6c63a97d92
commit b846714560
2 changed files with 5 additions and 4 deletions

View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<string name="address">http://localhost:8337</string>
<integer name="threads">2</integer>
<integer name="size">10</integer> <integer name="size">10</integer>
<bool name="random">true</bool> <bool name="random">true</bool>
<bool name="use_albums">true</bool> <bool name="use_albums">true</bool>
<string name="query"/> <string name="query"/>
<bool name="start_charging">false</bool> <bool name="start_charging">false</bool>
<integer name="download_interval">7</integer> <integer name="download_interval">7</integer>
</resources> </resources>

View File

@ -2,14 +2,14 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<EditTextPreference <EditTextPreference
android:defaultValue="http://localhost:5785" android:defaultValue="@string/address"
android:inputType="text" android:inputType="text"
android:key="address" android:key="address"
android:summary="Address of the synchronisation server" android:summary="Address of the synchronisation server"
android:title="Address" /> android:title="Address" />
<EditTextPreference <EditTextPreference
android:defaultValue="2" android:defaultValue="@integer/threads"
android:inputType="number" android:inputType="number"
android:key="threads" android:key="threads"
android:summary="Number of threads to use for downloading" android:summary="Number of threads to use for downloading"