allow longer channel names (if you include the # prefix and suffix

This commit is contained in:
Kevin Hester 2021-04-05 15:35:12 +08:00
parent 6c8aab5a43
commit 7bb3511587
3 changed files with 2 additions and 3 deletions

View file

@ -243,7 +243,7 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
val random = SecureRandom()
val bytes = ByteArray(32)
random.nextBytes(bytes)
newSettings.name = newName // Only change the name if the user did some editing
newSettings.name = newName
newSettings.psk = ByteString.copyFrom(bytes)
} else {
debug("Switching back to default channel")

View file

@ -24,7 +24,7 @@
android:digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890- "
android:hint="@string/channel_name"
android:imeOptions="actionDone"
android:maxLength="11"
android:maxLength="15"
android:singleLine="true"
android:text="@string/unset" />
</com.google.android.material.textfield.TextInputLayout>