mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-03 21:53:55 -04:00
disable ownerName text input if isNullOrEmpty
This commit is contained in:
@@ -239,6 +239,7 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
||||
}
|
||||
|
||||
model.ownerName.observe(viewLifecycleOwner) { name ->
|
||||
binding.usernameEditText.isEnabled = !name.isNullOrEmpty()
|
||||
binding.usernameEditText.setText(name)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user