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"?>
<resources>
<string name="address">http://localhost:8337</string>
<integer name="threads">2</integer>
<integer name="size">10</integer>
<bool name="random">true</bool>
<bool name="use_albums">true</bool>
<string name="query"/>
<bool name="start_charging">false</bool>
<integer name="download_interval">7</integer>
</resources>

View File

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