From d1429ad150f79ed3490036cbc6722dac2a2781a2 Mon Sep 17 00:00:00 2001 From: Philoul Date: Wed, 27 Jul 2022 23:59:17 +0200 Subject: [PATCH] Autotune replace EditTextPreference by ValidatingEditTextPreference for Default tuneDays --- app/src/main/res/xml/pref_autotune.xml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/xml/pref_autotune.xml b/app/src/main/res/xml/pref_autotune.xml index aef72365a0..7cc1d6d488 100644 --- a/app/src/main/res/xml/pref_autotune.xml +++ b/app/src/main/res/xml/pref_autotune.xml @@ -1,6 +1,8 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:validate="http://schemas.android.com/apk/res-auto"> + --> - + android:title="@string/autotune_default_tune_days_title" + android:dialogMessage="@string/autotune_default_tune_days_summary" + android:digits="0123456789" + android:inputType="number" + android:selectAllOnFocus="true" + android:singleLine="true" + validate:maxNumber="30" + validate:minNumber="1" + validate:testType="numericRange" />