kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
allow longer channel names (if you include the # prefix and suffix
rodzic
6c8aab5a43
commit
7bb3511587
|
@ -5,6 +5,5 @@
|
||||||
<mapping directory="$PROJECT_DIR$/app/src/main/proto" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/app/src/main/proto" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/design" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/design" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/geeksville-androidlib" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/geeksville-androidlib" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/mesh_shared/src/main/proto" vcs="Git" />
|
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -243,7 +243,7 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
|
||||||
val random = SecureRandom()
|
val random = SecureRandom()
|
||||||
val bytes = ByteArray(32)
|
val bytes = ByteArray(32)
|
||||||
random.nextBytes(bytes)
|
random.nextBytes(bytes)
|
||||||
newSettings.name = newName // Only change the name if the user did some editing
|
newSettings.name = newName
|
||||||
newSettings.psk = ByteString.copyFrom(bytes)
|
newSettings.psk = ByteString.copyFrom(bytes)
|
||||||
} else {
|
} else {
|
||||||
debug("Switching back to default channel")
|
debug("Switching back to default channel")
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
android:digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890- "
|
android:digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890- "
|
||||||
android:hint="@string/channel_name"
|
android:hint="@string/channel_name"
|
||||||
android:imeOptions="actionDone"
|
android:imeOptions="actionDone"
|
||||||
android:maxLength="11"
|
android:maxLength="15"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/unset" />
|
android:text="@string/unset" />
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
Ładowanie…
Reference in New Issue