aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-05-01 16:48:31 -0700
committerAllan Wang <me@allanwang.ca>2019-05-01 16:48:31 -0700
commit4b977d018aea394c971c01e48ba8d7fe8bed8091 (patch)
tree2015c422c7abda704e3e44ccf8c68b504f83aa76 /app/src/main/kotlin
parent984a4a7bf1d08c0d3143ea6d3ea637d7e674f0c2 (diff)
downloadfrost-4b977d018aea394c971c01e48ba8d7fe8bed8091.tar.gz
frost-4b977d018aea394c971c01e48ba8d7fe8bed8091.tar.bz2
frost-4b977d018aea394c971c01e48ba8d7fe8bed8091.zip
Move disclaimer string
Diffstat (limited to 'app/src/main/kotlin')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/settings/Security.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/settings/Security.kt b/app/src/main/kotlin/com/pitchedapps/frost/settings/Security.kt
index afd7c4e1..754e19de 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Security.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Security.kt
@@ -34,6 +34,11 @@ fun SettingsActivity.getSecurityPrefs(): KPrefAdapterBuilder.() -> Unit = {
checkbox(R.string.enable_biometrics, Prefs::biometricsEnabled, {
launch {
+ /*
+ * For security, we should request authentication when:
+ * - enabling to ensure that it is supported
+ * - disabling to ensure that it is permitted
+ */
BiometricUtils.authenticate(this@getSecurityPrefs, force = true).await()
Prefs.biometricsEnabled = it
reloadByTitle(R.string.enable_biometrics)