mirror of
https://github.com/Corewala/Buran
synced 2024-12-22 07:42:43 +00:00
Added toasts for certificate loading
This commit is contained in:
parent
3df657d4d4
commit
e10e78b9f5
3 changed files with 9 additions and 0 deletions
|
@ -16,6 +16,7 @@ import android.view.View
|
|||
import android.view.WindowManager
|
||||
import android.view.inputmethod.EditorInfo
|
||||
import android.widget.EditText
|
||||
import android.widget.Toast
|
||||
import androidx.activity.viewModels
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
|
@ -262,9 +263,11 @@ class GemActivity : AppCompatActivity() {
|
|||
)
|
||||
}
|
||||
refresh()
|
||||
Toast.makeText(this, this.getString(R.string.cert_loaded), Toast.LENGTH_SHORT).show()
|
||||
}else{
|
||||
certPassword = null
|
||||
refresh()
|
||||
Toast.makeText(this, this.getString(R.string.cert_unloaded), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -461,6 +464,7 @@ class GemActivity : AppCompatActivity() {
|
|||
)
|
||||
}
|
||||
gemRequest(state.uri.toString(), true)
|
||||
Toast.makeText(this, this.getString(R.string.cert_loaded), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
.setNegativeButton(getString(R.string.cancel).toUpperCase()) { _, _ -> }
|
||||
|
@ -587,6 +591,7 @@ class GemActivity : AppCompatActivity() {
|
|||
|
||||
certPassword = biometricManager.decryptData(ciphertext, result.cryptoObject?.cipher!!)
|
||||
gemRequest(address, true)
|
||||
Toast.makeText(applicationContext, applicationContext.getString(R.string.cert_loaded), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -75,6 +75,8 @@
|
|||
<string name="biometric_cert_verification">Certificat Client biométrique</string>
|
||||
<string name="load_cert">Chargez Certificat</string>
|
||||
<string name="unload_cert">Déchargez Certificat</string>
|
||||
<string name="cert_loaded">Certificat chargé</string>
|
||||
<string name="cert_unloaded">Certificat dechargé</string>
|
||||
<string name="set_home_capsule">Choisir comme capsule d\'accueil</string>
|
||||
<string name="check_for_updates">Vérifier pour des mises à jour</string>
|
||||
<string name="new_version_available">Nouvelle version disponible</string>
|
||||
|
|
|
@ -75,6 +75,8 @@
|
|||
<string name="biometric_cert_verification">Client Certificate biometrics</string>
|
||||
<string name="load_cert">Load Certificate</string>
|
||||
<string name="unload_cert">Unload Certificate</string>
|
||||
<string name="cert_loaded">Certificate loaded</string>
|
||||
<string name="cert_unloaded">Certificate unloaded</string>
|
||||
<string name="set_home_capsule">Set home capsule</string>
|
||||
<string name="check_for_updates">Check for updates</string>
|
||||
<string name="new_version_available">New version available</string>
|
||||
|
|
Loading…
Reference in a new issue