Exporting now requires you to re-type the Keyguard password

This commit is contained in:
Artem Chepurnoy 2024-02-27 21:29:45 +02:00
parent 56ff5565dc
commit 6d4dcdc2b7
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 0 additions and 9 deletions

View File

@ -20,10 +20,6 @@ data class ExportRoute(
val args: Args, val args: Args,
) : Route { ) : Route {
companion object { companion object {
// TODO: Change it to true after the app stops asking
// biometrics twice.
private const val REQUIRE_ELEVATED_ACCESS = false
fun actionOrNull( fun actionOrNull(
translator: TranslatorScope, translator: TranslatorScope,
accountId: AccountId, accountId: AccountId,
@ -98,11 +94,6 @@ data class ExportRoute(
intent: NavigationIntent, intent: NavigationIntent,
navigate: (NavigationIntent) -> Unit, navigate: (NavigationIntent) -> Unit,
) { ) {
if (!REQUIRE_ELEVATED_ACCESS) {
navigate(intent)
return
}
val elevatedRoute = registerRouteResultReceiver( val elevatedRoute = registerRouteResultReceiver(
route = ElevatedAccessRoute(), route = ElevatedAccessRoute(),
) { result -> ) { result ->