combov2: Fix crash in preferences fragment after importing AAPS settings

Use IntSeekBarPreference instead of SeekBarPreference to automatically
convert a string value to an int (which otherwise causes an exception).

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
This commit is contained in:
Carlos Rafael Giani 2022-12-03 21:28:57 +01:00
parent e97267cdf5
commit a9690dcbc9

View file

@ -20,7 +20,7 @@
android:key="@string/key_combov2_unpair_pump"
android:shouldDisableView="true"/>
<SeekBarPreference
<info.nightscout.core.ui.elements.IntSeekBarPreference
android:key="@string/key_combov2_discovery_duration"
android:title="@string/combov2_discovery_duration"
android:min="30"