mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: remove remember from isEditing variable
This commit is contained in:
parent
e116a8a97c
commit
a4baa93f4e
1 changed files with 1 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue