add preference entry for automatic synchro

This commit is contained in:
Shinokuni 2020-02-04 22:24:47 +01:00
parent 532a7d3d7f
commit 6c10ceb009
4 changed files with 51 additions and 0 deletions

View File

@ -111,5 +111,15 @@
<string name="opml_export_description">Export des flux et dossiers</string>
<string name="new_feed">Nouveau flux</string>
<string name="download_image_permission">Le téléchargement de l\'image nécessite l\'accès au stockage</string>
<string name="auto_synchro">Synchronisation automatique</string>
<string name="manual">Manuel</string>
<string name="mins_15">15 min</string>
<string name="min_30">30 min</string>
<string name="hour_1">1 heure</string>
<string name="hour_2">2 heures</string>
<string name="hour_3">3 heures</string>
<string name="hour_6">6 heures</string>
<string name="hour_12">12 heures</string>
<string name="every_day">Chaque jour</string>
</resources>

View File

@ -48,4 +48,28 @@
<item>false</item>
<item>true</item>
</string-array>
<string-array name="synchro">
<item>@string/manual</item>
<item>@string/mins_15</item>
<item>@string/min_30</item>
<item>@string/hour_1</item>
<item>@string/hour_2</item>
<item>@string/hour_3</item>
<item>@string/hour_6</item>
<item>@string/hour_12</item>
<item>@string/every_day</item>
</string-array>
<string-array name="synchro_values">
<item>0</item>
<item>0.15</item>
<item>0.30</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>6</item>
<item>12</item>
<item>24</item>
</string-array>
</resources>

View File

@ -117,4 +117,14 @@
<string name="opml_export_description">Export feeds and folders</string>
<string name="new_feed">New feed</string>
<string name="download_image_permission">To download the image, storage permission is needed</string>
<string name="auto_synchro">Automatic synchronisation</string>
<string name="manual">Manual</string>
<string name="mins_15">15 mins</string>
<string name="min_30">30 mins</string>
<string name="hour_1">1 hour</string>
<string name="hour_2">2 hours</string>
<string name="hour_3">3 hours</string>
<string name="hour_6">6 hours</string>
<string name="hour_12">12 hours</string>
<string name="every_day">Every day</string>
</resources>

View File

@ -28,6 +28,13 @@
android:entryValues="@array/themes_values"
android:key="dark_theme"
android:title="@string/theme" />
<ListPreference
android:defaultValue="0"
android:entries="@array/synchro"
android:entryValues="@array/synchro_values"
android:key="auto_synchro"
android:title="@string/auto_synchro" />
</PreferenceCategory>
</PreferenceScreen>