Skip to content

Commit 22da2fa

Browse files
committed
chore: reportFullyDrawn from scanner and login
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 14cbccb commit 22da2fa

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

  • apps/flipcash/features

apps/flipcash/features/login/src/main/kotlin/com/flipcash/app/login/router/LoginRouter.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.flipcash.app.login.router
22

3+
import androidx.activity.compose.LocalActivity
34
import androidx.compose.animation.AnimatedVisibility
45
import androidx.compose.animation.core.tween
56
import androidx.compose.animation.fadeIn
@@ -29,8 +30,12 @@ fun LoginRouter(
2930
val state by vm.stateFlow.collectAsState()
3031
val navigator = LocalCodeNavigator.current
3132
var visible by remember { mutableStateOf(false) }
33+
val activity = LocalActivity.current
3234

33-
LaunchedEffect(Unit) { visible = true }
35+
LaunchedEffect(Unit) {
36+
activity?.reportFullyDrawn()
37+
visible = true
38+
}
3439

3540
LaunchedEffect(vm) {
3641
vm.eventFlow
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
package com.flipcash.app.scanner
22

3+
import androidx.activity.compose.LocalActivity
34
import androidx.compose.runtime.Composable
5+
import androidx.compose.runtime.LaunchedEffect
46
import com.flipcash.app.scanner.internal.Scanner
57

68
@Composable
79
fun ScannerScreen() {
10+
val activity = LocalActivity.current
11+
LaunchedEffect(Unit) {
12+
activity?.reportFullyDrawn()
13+
}
814
Scanner()
915
}

0 commit comments

Comments
 (0)