fix: use "Biometric" instead of Touch ID when no Biometric found (#20555)
Signed-off-by: yqrashawn <namy.19@gmail.com>
This commit is contained in:
parent
3e268936f6
commit
0d9bedf11c
|
@ -135,7 +135,8 @@
|
|||
(>= (- now app-in-background-since)
|
||||
constants/ms-in-bg-for-require-bioauth))]
|
||||
(rf/merge cofx
|
||||
{:db (dissoc db :app-in-background-since)}
|
||||
{:db (dissoc db :app-in-background-since)
|
||||
:effects.biometric/get-supported-type nil}
|
||||
(mailserver/process-next-messages-request)
|
||||
(when-not new-account?
|
||||
(universal-links/process-stored-event))
|
||||
|
|
|
@ -11,9 +11,10 @@
|
|||
(defn get-label-by-type
|
||||
[biometric-type]
|
||||
(condp = biometric-type
|
||||
constants/biometrics-type-android (i18n/label :t/biometric-fingerprint)
|
||||
constants/biometrics-type-face-id (i18n/label :t/biometric-faceid)
|
||||
(i18n/label :t/biometric-touchid)))
|
||||
constants/biometrics-type-android (i18n/label :t/biometric-fingerprint)
|
||||
constants/biometrics-type-face-id (i18n/label :t/biometric-faceid)
|
||||
constants/biometrics-type-touch-id (i18n/label :t/biometric-touchid)
|
||||
(i18n/label :t/biometric)))
|
||||
|
||||
(defn get-icon-by-type
|
||||
[biometric-type]
|
||||
|
|
|
@ -70,6 +70,7 @@
|
|||
"bio-added": "Bio added",
|
||||
"bio-is-too-long": "Bio is too long",
|
||||
"bio-updated": "Bio updated",
|
||||
"biometric": "Biometric",
|
||||
"biometric-auth-android-sensor-desc": "Touch sensor",
|
||||
"biometric-auth-android-sensor-error-desc": "Failed",
|
||||
"biometric-auth-android-title": "Authentication Required",
|
||||
|
|
Loading…
Reference in New Issue