mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-15 18:26:48 -04:00
fix: remove remember from isEditing variable
This commit is contained in:
@@ -122,12 +122,11 @@ fun ChannelScreen(viewModel: UIViewModel = viewModel()) {
|
||||
|
||||
val channels by viewModel.channels.collectAsStateWithLifecycle()
|
||||
var channelSet by remember(channels) { mutableStateOf(channels.protobuf) }
|
||||
val isEditing = channelSet != channels.protobuf
|
||||
|
||||
val primaryChannel = ChannelSet(channelSet).primaryChannel
|
||||
val channelUrl = ChannelSet(channelSet).getChannelUrl()
|
||||
|
||||
val isEditing by remember(channelSet) { mutableStateOf(channelSet != channels.protobuf) }
|
||||
|
||||
val barcodeLauncher = rememberLauncherForActivityResult(ScanContract()) { result ->
|
||||
if (result.contents != null) {
|
||||
viewModel.setRequestChannelUrl(Uri.parse(result.contents))
|
||||
|
||||
Reference in New Issue
Block a user