mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
minor details
all changes (edit, reset, scan) require unlock
This commit is contained in:
parent
3ecc247c76
commit
14af474b71
1 changed files with 2 additions and 2 deletions
|
|
@ -73,6 +73,7 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
|
|||
|
||||
binding.channelOptions.isEnabled = isEditing
|
||||
binding.shareButton.isEnabled = !isEditing
|
||||
binding.resetButton.isEnabled = isEditing
|
||||
binding.scanButton.isEnabled = isEditing
|
||||
binding.channelNameView.isEnabled = isEditing
|
||||
if (isEditing) // Dim the (stale) QR code while editing...
|
||||
|
|
@ -90,7 +91,6 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
|
|||
|
||||
// Only let buttons work if we are connected to the radio
|
||||
binding.shareButton.isEnabled = connected
|
||||
binding.resetButton.isEnabled = connected && Channel.default != channel
|
||||
|
||||
binding.editableCheckbox.isChecked = false // start locked
|
||||
if (channel != null) {
|
||||
|
|
@ -321,4 +321,4 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
|
|||
super.onActivityResult(requestCode, resultCode, data)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue