mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Fix link device crash.
This commit is contained in:
committed by
Greyson Parrelli
parent
4dba584913
commit
9d0aef8dbc
@@ -135,7 +135,9 @@ class LinkDeviceFragment : ComposeFragment() {
|
||||
|
||||
LaunchedEffect(state.seenEducationSheet) {
|
||||
if (state.seenEducationSheet) {
|
||||
biometricAuth.authenticate(requireContext(), true) { biometricDeviceLockLauncher.launch(getString(R.string.LinkDeviceFragment__unlock_to_link)) }
|
||||
if (!biometricAuth.authenticate(requireContext(), true) { biometricDeviceLockLauncher.launch(getString(R.string.LinkDeviceFragment__unlock_to_link)) }) {
|
||||
navController.safeNavigate(R.id.action_linkDeviceFragment_to_addLinkDeviceFragment)
|
||||
}
|
||||
viewModel.markEducationSheetSeen(false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user