diff --git a/app/src/main/java/com/infomaniak/drive/ui/fileList/fileShare/FileShareDetailsFragment.kt b/app/src/main/java/com/infomaniak/drive/ui/fileList/fileShare/FileShareDetailsFragment.kt index d4d5775c07..9189474b9d 100644 --- a/app/src/main/java/com/infomaniak/drive/ui/fileList/fileShare/FileShareDetailsFragment.kt +++ b/app/src/main/java/com/infomaniak/drive/ui/fileList/fileShare/FileShareDetailsFragment.kt @@ -182,7 +182,7 @@ class FileShareDetailsFragment : Fragment() { file.onlyoffice, this.shareLink != null ) - findNavController().navigate( + safeNavigate( FileShareDetailsFragmentDirections.actionFileShareDetailsFragmentToSelectPermissionBottomSheetDialog( currentFileId = currentFileId, currentPermission = currentPermission, @@ -192,7 +192,7 @@ class FileShareDetailsFragment : Fragment() { }, onSettingsClicked = { newShareLink, currentFile -> this.shareLink = newShareLink - findNavController().navigate( + safeNavigate( FileShareDetailsFragmentDirections.actionFileShareDetailsFragmentToFileShareLinkSettings( fileId = currentFile.id, driveId = currentFile.driveId,