1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 22:31:16 +00:00

Persistent=false should be repeated for all subpreferences, a global persistent flag would have been too easy... (fixes #256)

This commit is contained in:
Lode Hoste 2015-03-20 01:30:49 +01:00
parent 7b54ce59b1
commit 2b9a79bdad
4 changed files with 30 additions and 8 deletions

View file

@ -1,27 +1,31 @@
<?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">
android:persistent="false">
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="device_id" android:key="device_id"
android:title="@string/device_id" android:title="@string/device_id"
android:widgetLayout="@layout/scan_qr_code_widget" /> android:widgetLayout="@layout/scan_qr_code_widget" />
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="name" android:key="name"
android:title="@string/name" /> android:title="@string/name" />
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="addresses" android:key="addresses"
android:title="@string/addresses" /> android:title="@string/addresses" />
<ListPreference <ListPreference
android:persistent="false"
android:key="compression" android:key="compression"
android:entries="@array/compress_entries" android:entries="@array/compress_entries"
android:entryValues="@array/compress_values" android:entryValues="@array/compress_values"
android:title="@string/compression" /> android:title="@string/compression" />
<CheckBoxPreference <CheckBoxPreference
android:persistent="false"
android:key="introducer" android:key="introducer"
android:title="@string/introducer" /> android:title="@string/introducer" />

View file

@ -1,35 +1,41 @@
<?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">
android:persistent="false">
<Preference <Preference
android:persistent="false"
android:key="device_id" android:key="device_id"
android:title="@string/device_id" /> android:title="@string/device_id" />
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="name" android:key="name"
android:title="@string/name" /> android:title="@string/name" />
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="addresses" android:key="addresses"
android:title="@string/addresses" /> android:title="@string/addresses" />
<ListPreference <ListPreference
android:persistent="false"
android:key="compression" android:key="compression"
android:entries="@array/compress_entries" android:entries="@array/compress_entries"
android:entryValues="@array/compress_values" android:entryValues="@array/compress_values"
android:title="@string/compression" /> android:title="@string/compression" />
<CheckBoxPreference <CheckBoxPreference
android:persistent="false"
android:key="introducer" android:key="introducer"
android:title="@string/introducer" /> android:title="@string/introducer" />
<Preference <Preference
android:persistent="false"
android:key="version" android:key="version"
android:title="@string/syncthing_version_title" android:title="@string/syncthing_version_title"
style="?android:preferenceInformationStyle" /> style="?android:preferenceInformationStyle" />
<Preference <Preference
android:persistent="false"
android:key="current_address" android:key="current_address"
android:title="@string/current_address" android:title="@string/current_address"
style="?android:preferenceInformationStyle" /> style="?android:preferenceInformationStyle" />

View file

@ -1,33 +1,39 @@
<?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">
android:persistent="false">
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="folder_id" android:key="folder_id"
android:title="@string/folder_id" /> android:title="@string/folder_id" />
<Preference <Preference
android:persistent="false"
android:key="directory" android:key="directory"
android:title="@string/directory" /> android:title="@string/directory" />
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="rescan_interval" android:key="rescan_interval"
android:title="@string/rescan_interval" android:title="@string/rescan_interval"
android:inputType="numberDecimal" /> android:inputType="numberDecimal" />
<CheckBoxPreference <CheckBoxPreference
android:persistent="false"
android:key="folder_master" android:key="folder_master"
android:title="@string/folder_master" /> android:title="@string/folder_master" />
<PreferenceScreen <PreferenceScreen
android:persistent="false"
android:key="devices" android:key="devices"
android:title="@string/devices" /> android:title="@string/devices" />
<CheckBoxPreference <CheckBoxPreference
android:persistent="false"
android:key="versioning" android:key="versioning"
android:title="@string/file_versioning" /> android:title="@string/file_versioning" />
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="versioning_keep" android:key="versioning_keep"
android:title="@string/keep_versions" android:title="@string/keep_versions"
android:inputType="numberDecimal" /> android:inputType="numberDecimal" />

View file

@ -1,37 +1,43 @@
<?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">
android:persistent="false">
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="folder_id" android:key="folder_id"
android:title="@string/folder_id" android:title="@string/folder_id"
android:enabled="false" android:enabled="false"
style="?android:preferenceInformationStyle" /> style="?android:preferenceInformationStyle" />
<Preference <Preference
android:persistent="false"
android:key="directory" android:key="directory"
android:title="@string/directory" android:title="@string/directory"
android:enabled="false" android:enabled="false"
style="?android:preferenceInformationStyle" /> style="?android:preferenceInformationStyle" />
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="rescan_interval" android:key="rescan_interval"
android:title="@string/rescan_interval" android:title="@string/rescan_interval"
android:inputType="numberDecimal" /> android:inputType="numberDecimal" />
<CheckBoxPreference <CheckBoxPreference
android:persistent="false"
android:key="folder_master" android:key="folder_master"
android:title="@string/folder_master" /> android:title="@string/folder_master" />
<PreferenceScreen <PreferenceScreen
android:persistent="false"
android:key="devices" android:key="devices"
android:title="@string/devices" /> android:title="@string/devices" />
<CheckBoxPreference <CheckBoxPreference
android:persistent="false"
android:key="versioning" android:key="versioning"
android:title="File Versioning" /> android:title="File Versioning" />
<EditTextPreference <EditTextPreference
android:persistent="false"
android:key="versioning_keep" android:key="versioning_keep"
android:title="@string/keep_versions" android:title="@string/keep_versions"
android:inputType="numberDecimal" /> android:inputType="numberDecimal" />