mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Allow linking of devices if no passlock is set.
This commit is contained in:
committed by
Cody Henthorne
parent
93c8cd133d
commit
ba2d5bce41
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user