mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-02 03:42:26 -05:00
minor details
all changes (edit, reset, scan) require unlock
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user