mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
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:
parent
d78932d6da
commit
ca6de33943
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue