1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2026-08-25 23:21:32 +00:00

Add a new preference to select on which network synchronize

This commit is contained in:
Loic Blot
2015-03-21 21:51:10 +01:00
parent b8506fffd1
commit 810567c237
7 changed files with 127 additions and 11 deletions
+8 -1
View File
@@ -28,7 +28,7 @@
<resources>
<!-- Translation version, reference for translators -->
<string name="translation_version">5</string>
<string name="translation_version">6</string>
<!-- System strings, do not translate -->
<string name="app_name">ownCloud-SMS</string>
@@ -95,6 +95,13 @@
<item>1440</item>
<item>-1</item>
</string-array>
<string name="pref_sync_wifi">Synchronize in Wi-Fi</string>
<string name="pref_sync_4g">Synchronize in 4G</string>
<string name="pref_sync_3g">Synchronize in 3G</string>
<string name="pref_sync_gprs">Synchronize in 2.5G (GPRS)</string>
<string name="pref_sync_2g">Synchronize in 2G</string>
<string name="pref_sync_others">Synchronize in other modes</string>
<string name="title_activity_login">Sign in</string>
+38 -1
View File
@@ -2,12 +2,49 @@
<PreferenceCategory
android:title="@string/summary_global_pref_to_general_prefs">
<ListPreference
android:defaultValue="10"
android:defaultValue="15"
android:entries="@array/pref_sync_frequency_titles"
android:entryValues="@array/pref_sync_frequency_values"
android:key="sync_frequency"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:title="@string/pref_title_sync_frequency" />
<CheckBoxPreference android:id="@+id/checkbox_sync_wifi"
android:defaultValue="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:key="sync_wifi"
android:title="@string/pref_sync_wifi" />
<CheckBoxPreference android:id="@+id/checkbox_sync_4g"
android:defaultValue="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:key="sync_4g"
android:title="@string/pref_sync_4g" />
<CheckBoxPreference android:id="@+id/checkbox_sync_3g"
android:defaultValue="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:key="sync_3g"
android:title="@string/pref_sync_3g" />
<CheckBoxPreference android:id="@+id/checkbox_sync_2g"
android:defaultValue="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:key="sync_2g"
android:title="@string/pref_sync_2g" />
<CheckBoxPreference android:id="@+id/checkbox_sync_gprs"
android:defaultValue="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:key="sync_gprs"
android:title="@string/pref_sync_gprs" />
<CheckBoxPreference android:id="@+id/checkbox_sync_others"
android:defaultValue="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:key="sync_others"
android:title="@string/pref_sync_others" />
</PreferenceCategory>
</PreferenceScreen>