fix(android): Approve & add no-op from shared Compose busy flag
All checks were successful
ci / test (pull_request) Successful in 2m32s
All checks were successful
ci / test (pull_request) Successful in 2m32s
PasteInviteScreen drove Verify and Approve from one busy boolean plus LaunchedEffect(busy). Tapping Approve relaunched decode, which cleared busy and cancelled add — so the roster never updated. Extract InviteAddFlow with separate verifying/adding flags and launch each action from its click handler. Unit tests were red against the shared-busy state machine (4/5 failed) and green after the split (5/5).
This commit is contained in:
parent
af7d69ace8
commit
f6ac5ea738
5 changed files with 211 additions and 33 deletions
|
|
@ -8,11 +8,14 @@ navigationCompose = "2.9.8"
|
|||
composeBom = "2025.12.01"
|
||||
jna = "5.19.1"
|
||||
coroutines = "1.11.0"
|
||||
junit = "4.13.2"
|
||||
|
||||
[libraries]
|
||||
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
|
||||
jna = { module = "net.java.dev.jna:jna", version.ref = "jna" }
|
||||
junit = { module = "junit:junit", version.ref = "junit" }
|
||||
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
|
||||
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
|
||||
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activityCompose" }
|
||||
androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "lifecycle" }
|
||||
androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle" }
|
||||
|
|
|
|||
Loading…
Reference in a new issue