minor details

all changes (edit, reset, scan) require unlock
This commit is contained in:
andrekir
2021-11-17 16:26:12 -03:00
parent 3ecc247c76
commit 14af474b71

View File

@@ -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)
}
}
}
}