Add integer constraint to port preference

This commit is contained in:
2020-05-09 15:13:13 +02:00
parent 0850390635
commit 75633a4f9f
4 changed files with 37 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceCategory android:title="@string/preference_category_server" app:iconSpaceReserved="false">
<EditTextPreference
<io.bartek.preference.IntEditTextPreference
android:defaultValue="8080"
android:inputType="number"
android:key="preference_port"