Don't show bio status for PinPolicy.never

This commit is contained in:
Dain Nilsson 2024-08-23 17:27:11 +02:00
parent e0c0b2ae2d
commit 6e20ee198f
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -47,7 +47,9 @@ class CertInfoTable extends ConsumerWidget {
metadata.keyType.getDisplayName(l10n), metadata.keyType.getDisplayName(l10n),
keys.slotMetadataKeyType keys.slotMetadataKeyType
), ),
if (metadata != null && supportsBio) if (metadata != null &&
metadata.pinPolicy != PinPolicy.never &&
supportsBio)
l10n.s_biometrics: ( l10n.s_biometrics: (
[PinPolicy.matchAlways, PinPolicy.matchOnce] [PinPolicy.matchAlways, PinPolicy.matchOnce]
.contains(metadata.pinPolicy) .contains(metadata.pinPolicy)