Merge pull request #1454 from Andries-Smit/fix/timeout-validation

Fix timeout validation
This commit is contained in:
Milos Kozak 2022-03-18 14:09:06 +01:00 committed by GitHub
commit 01c5dbbdb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,15 +82,18 @@
android:key="@string/key_bolus_pin"
android:title="@string/bolus_pin" />
<EditTextPreference
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
android:defaultValue="1"
android:digits="0123456789"
android:inputType="number"
android:key="@string/key_protection_timeout"
android:title="@string/protection_timeout_title"
android:maxLines="1"
android:singleLine="true"
android:summary="@string/protection_timeout_summary"
app:defaultValue="1"
android:title="@string/protection_timeout_title"
validate:maxNumber="180"
validate:minNumber="1"
validate:testType="numeric" />
validate:testType="numericRange" />
</PreferenceCategory>