Skip to content

Commit

Permalink
App-Lock: automatically show authentication dialog on launch (#106)
Browse files Browse the repository at this point in the history
Commits:
  * App-Lock: automatically show authentication dialog on launch
  * Fix one depreciation warning
---------
Signed-off-by: starry-shivam <[email protected]>
  • Loading branch information
starry-shivam authored Apr 24, 2024
1 parent c38fe5f commit 78b7753
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class WidgetConfigActivity : AppCompatActivity() {

LottieAnimation(
composition = compositionResult.value,
progress = progressAnimation,
progress = { progressAnimation },
modifier = Modifier.size(335.dp),
enableMergePaths = true
)
Expand Down

0 comments on commit 78b7753

Please sign in to comment.