diff --git a/app/src/main/java/com/starry/greenstash/ui/screens/other/AppLockedScreen.kt b/app/src/main/java/com/starry/greenstash/ui/screens/other/AppLockedScreen.kt index f29bb17c..b1ed7aaa 100644 --- a/app/src/main/java/com/starry/greenstash/ui/screens/other/AppLockedScreen.kt +++ b/app/src/main/java/com/starry/greenstash/ui/screens/other/AppLockedScreen.kt @@ -68,6 +68,11 @@ import kotlinx.coroutines.delay @Composable fun AppLockedScreen(onAuthRequest: () -> Unit) { + LaunchedEffect(key1 = true) { + // Auto trigger the auth request for the first time. + // We are waiting for 650ms to let the screen load properly. + delay(650); onAuthRequest() + } Column( Modifier .fillMaxSize() diff --git a/app/src/main/java/com/starry/greenstash/widget/configuration/WidgetConfigActivity.kt b/app/src/main/java/com/starry/greenstash/widget/configuration/WidgetConfigActivity.kt index fcb69988..533c0d01 100644 --- a/app/src/main/java/com/starry/greenstash/widget/configuration/WidgetConfigActivity.kt +++ b/app/src/main/java/com/starry/greenstash/widget/configuration/WidgetConfigActivity.kt @@ -205,7 +205,7 @@ class WidgetConfigActivity : AppCompatActivity() { LottieAnimation( composition = compositionResult.value, - progress = progressAnimation, + progress = { progressAnimation }, modifier = Modifier.size(335.dp), enableMergePaths = true )