We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cca589 commit 91478b8Copy full SHA for 91478b8
presentation/src/main/java/org/cryptomator/presentation/presenter/BrowseFilesPresenter.kt
@@ -538,8 +538,9 @@ class BrowseFilesPresenter @Inject constructor( //
538
Uri.fromFile(fileUtil.getLegacyFileForMicrosoftWorkaround(cloudFile))
539
} else {
540
fileUtil.contentUriFor(cloudFile)
541
- }.also {
542
- openedCloudFile = cloudFile
+ }
+ openedCloudFile = cloudFile
543
+ uriToOpenedFile?.let {
544
openedCloudFileMd5 = calculateDigestFromUri(it)
545
viewFileIntent.setDataAndType(it, mimeTypes.fromFilename(cloudFile.name)?.toString())
546
viewFileIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
0 commit comments