From 5387f6635f3ad8cb4ac24acd0b369905e1ab9485 Mon Sep 17 00:00:00 2001 From: Corewala Date: Thu, 19 May 2022 13:24:14 -0400 Subject: [PATCH] Update cert icon in request function --- app/src/main/java/corewala/buran/ui/GemActivity.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/corewala/buran/ui/GemActivity.kt b/app/src/main/java/corewala/buran/ui/GemActivity.kt index 8b78868..05bf694 100644 --- a/app/src/main/java/corewala/buran/ui/GemActivity.kt +++ b/app/src/main/java/corewala/buran/ui/GemActivity.kt @@ -270,7 +270,6 @@ class GemActivity : AppCompatActivity() { }else{ certPassword = null refresh() - updateClientCertIcon() } } @@ -467,7 +466,6 @@ class GemActivity : AppCompatActivity() { ) } gemRequest(state.uri.toString()) - updateClientCertIcon() } } .setNegativeButton(getString(R.string.cancel).toUpperCase()) { _, _ -> } @@ -594,7 +592,6 @@ class GemActivity : AppCompatActivity() { certPassword = biometricManager.decryptData(ciphertext, result.cryptoObject?.cipher!!) gemRequest(address) - updateClientCertIcon() } } @@ -811,8 +808,8 @@ class GemActivity : AppCompatActivity() { } private fun gemRequest(address: String){ - val clientCertAllowed = isHostSigned(address.toURI()) - if(!clientCertAllowed) certPassword = null + if(!isHostSigned(address.toURI())) certPassword = null + updateClientCertIcon() if(getInternetStatus()){ if(initialised){