Allow linking of devices if no passlock is set.

This commit is contained in:
mtang-signal
2024-09-04 12:12:33 -07:00
committed by Cody Henthorne
parent 93c8cd133d
commit ba2d5bce41
3 changed files with 6 additions and 5 deletions

View File

@@ -152,7 +152,7 @@ class LinkDeviceFragment : ComposeFragment() {
modifier = Modifier.padding(contentPadding),
onLearnMore = { navController.safeNavigate(R.id.action_linkDeviceFragment_to_linkDeviceLearnMoreBottomSheet) },
onLinkDevice = {
if (biometricAuth.canAuthenticate()) {
if (biometricAuth.canAuthenticate(requireContext())) {
navController.safeNavigate(R.id.action_linkDeviceFragment_to_linkDeviceEducationSheet)
} else {
navController.safeNavigate(R.id.action_linkDeviceFragment_to_addLinkDeviceFragment)