Add setting

This commit is contained in:
Philoul 2021-06-11 21:43:53 +02:00
parent c005243dfd
commit 6fd6283ef6
2 changed files with 10 additions and 0 deletions

View file

@ -837,6 +837,7 @@
<string name="key_maintenance_logs_amount" translatable="false">maintenance_logs_amount</string>
<string name="key_logshipper_amount" translatable="false">logshipper_amount</string>
<string name="maintenance_amount">No of Logs to send</string>
<string name="logshipper_amount">No of Logs to keep in history</string>
<string name="maintenance">Maintenance</string>
<string name="maintenance_shortname">MAINT</string>
<string name="description_maintenance">Provides several functions for maintenance (eg. log sending, log deletion).</string>

View file

@ -26,6 +26,15 @@
validate:minNumber="1"
validate:testType="numericRange"/>
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
android:defaultValue="30"
android:inputType="number"
android:key="@string/key_logshipper_amount"
android:title="@string/logshipper_amount"
validate:maxNumber="300"
validate:minNumber="15"
validate:testType="numericRange"/>
<SwitchPreference
android:defaultValue="true"
android:key="@string/key_maintenance_encrypt_exported_prefs"