Update Note.kt

This commit is contained in:
Tibor Kaputa 2021-09-08 09:53:04 +02:00 committed by GitHub
parent 5e5576a0e0
commit ff7e114264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ data class Note(
fun isLocked() = protectionType != PROTECTION_NONE
fun isBiometricLockUnavailable(context: Context): Boolean {
fun shouldBeUnlocked(context: Context): Boolean {
return protectionType == PROTECTION_FINGERPRINT && !context.isBiometricIdAvailable()
}
}