-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decrypted files from preview does not offer the right application to open the downloaded attachment #2944
Comments
The user added the following comment:
This is when tapping the entire attachment file button. It behaves as if the user taps the attachment preview, which will decrypt and download the file. Unfortunately, its not very intuitive as user expects it will be downloaded. It may be different assumption with other user. I think we need to come up better approach or to carefully consider if we really need the the "clickable" attachment file button that behaves as attachment preview by default when it is tapped. |
Hi @martgil,
It's possible. It could be on the app side: earlier I didn't specify an attachment type -> the Android system could show the wrong apps for handling.
Agree. I've disabled "clickable" for the whole attachment view. |
Hello @DenBond7 - thanks for reviewing this bug report. I'm sorry for not including the FlowCrypt android version when writing this issue. For me, I'm able to replicate it on app version 1.6.1 and retested it just now on that build. Against a |
Thank you, Mart. It's not urgent.
Please share a video when you will be able |
Thanks @DenBond7. I started testing this. I'll share more details when I completed testing. |
Hello @DenBond7, I have details on this issue now. In my testing case, the FlowCrypt android 1.6.1 that came from Play Store used to work well compared to #2948 build and I must say that there's no change the way preview attachment works. Reason is that, it must have been that the Microsoft Word android app that's no longer offer user to open streamed docx file and open it that way. The reason I said this is that, some of my apps for opening docx file where gets suggested except for MS word app. If I select the vivo document app, I can view it from there very very well. Please kindly see the video screen recording sent via secure email. |
@martgil Thank you for your feedback The last changes contains the following code: flowcrypt-android/FlowCrypt/src/main/java/com/flowcrypt/email/util/GeneralUtil.kt Line 473 in 13bf886
Intent() // we create some intent to handle preview .setAction(Intent.ACTION_VIEW) we set .setDataAndType(uri,..) we specify Intent.normalizeMimeType(attachmentInfo.type) we specify <intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.OPENABLE" />
<data android:mimeType="image/*" /> It means this app can open any image. Based on If a user doesn't see some apps in the provided list it means that apps have wrong settings. Or it can depend on the device manufacturer. How can we fix it: instead of specifying some mimeType we can always send
I've added these changes here #2948. You can try. |
ref #2894 (comment) |
Description
FlowCrypt android app offers previewing a file before downloading. In the specific report below, they have tried to open a word file by tapping the attachment preview -> starts downloading the file -> file download completed. Once the file download is completed, it shows the file to be opened in Google Wallet or Samsung Health which is incorrect.
I tested the reported scenario and gave me the same result.
Steps to reproduce
Workaround
https://mail.google.com/mail/u/human@flowcrypt.com/#inbox/FMfcgzQZSsPWNSXvHKPxBNbMjJGnjxGc
The text was updated successfully, but these errors were encountered: