Allow user to enter only a very restricted list of channel name chars

(for now - possibly loosen in the future - someone reported the device
code didn't like odd characters, and we definitely don't want anything
>127).  Also, shrink length to 11 chars (which is 12 including the nul
terminator on the device side (current limit in mesh.options).
This commit is contained in:
geeksville 2020-06-24 14:58:56 -07:00
parent d78932d6da
commit ca6de33943

View file

@ -20,9 +20,10 @@
android:id="@+id/channelNameEdit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890- "
android:hint="@string/channel_name"
android:imeOptions="actionDone"
android:maxLength="12"
android:maxLength="11"
android:singleLine="true"
android:text="@string/unset" />
</com.google.android.material.textfield.TextInputLayout>