-
Notifications
You must be signed in to change notification settings - Fork 14
improve handling attachments #2948
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
Conversation
|
Hi @ioanmo226, will you be able to perform reviews for Android PRs as you did before? |
Added a test to cover the following case: Test visibility for Settings -> General when RESTRICT_ANDROID_ATTACHMENT_HANDLING is present and vice versa. As intents are handled by the system, it's hard to test 'smart mode' via Espresso(outside of the app scope). Tested manually. I've updated the PR details. |
|
Hi @ioanmo226 Sorry for the late reply. I will have it tested the newer updates and let you know of the result. |
|
I tested the current one and notices that it still shows blank white images when the image attachment was previewed using the apps default photo app - I thought it was just happened on AOSP (with older android version). I think it needs to be corrected. For instance, if user doesn't have an alternative app such as Google Photos, then I'll be problematic for them and will received just a white blank image. Please feel free to review the follow screen recording below: FlowCrypt.-.default.photo.app.shows.blank.white.image.mp4 |
|
One more addition. We should understand that there are millions of Android devices with different Android versions and from different manufacturers.
|
|
Thanks for the detailed explanation, Den. I agree that don't want to store them locally during attachment preview as it was less secure so would be just okay to inform users to install compatible apps such as Google Photos or just download the image attachment anyway. |
martgil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please approve this PR if it's fine for you too
Thanks Ioan, its LGTM 👍🏼
This PR improved handling attachments.
Doesn't affect users with existing
RESTRICT_ANDROID_ATTACHMENT_HANDLINGpolicy.Screen_recording_20250218_125036_smart_mode.mp4
Added a test to cover the following case: Test visibility for
Settings -> GeneralwhenRESTRICT_ANDROID_ATTACHMENT_HANDLINGis present and vice versa.As intents are handled by the system, it's hard to test 'smart mode' via Espresso(outside of the app scope). Tested manually.
close #2894
close #2944
Tests (delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):