Skip to content

Commit

Permalink
Update: Make Lock page safe on clicking back
Browse files Browse the repository at this point in the history
  • Loading branch information
machiav3lli committed Nov 9, 2023
1 parent c932aa5 commit 440e553
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/machiav3lli/backup/pages/SplashPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.machiav3lli.backup.pages

import android.annotation.SuppressLint
import android.app.Activity
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
Expand Down Expand Up @@ -148,6 +149,9 @@ fun LockPage(launchMain: () -> Unit) {
}
}
) {
BackHandler {
OABX.main?.finishAffinity()
}
Box(modifier = Modifier.fillMaxSize()) {}
}
}
Expand Down

0 comments on commit 440e553

Please sign in to comment.