-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Audio & Video not opening #3436
Comments
:'( |
some context: I need to stop testing things on my Nexus 5. this pr doesn't actually revert all of aa37d6e and it is correct that it does not do that. the second null check in my #3412 pr is entirely unnecessary and also the source of this bug. when I wrote aa37d6e I originally did not include that second null check, but then TS crashed in my tests, I noticed it was related to the secure media dialog and so i was like "oh, of course i should have a null check there too!" and then added it. adding the null check solved my crash but turns out the source of the crash was actually not a null check issue but a permissions issue caused by the way I install two TextSecure apks side by side on my Nexus 5 (change of application ID and package name). In conclusion:
|
@rhodey I got the feeling you're a little upset. |
@McLoo thanks :) unfortunately we can't easily test attachments related things because when you leave the app under test android test frameworks immediately pronounce the test failed, browsing through your gallery for photo, audio, or video counts as leaving the app :/ |
I see.
for that case, instead of picking something from outside. Might not cover that pick and return part and playback, but the rest of media handling?! |
yeah I think it is possible for us to test these things just not as easy as others so i don't have much hope in getting a test in any time soon. ideally we would test the app in the same way the user interacts with it, so no mocks, hacks, or tricks, but I think for attachments (except for the in app camera fragment on it's way) I think we have to do some hacking by creating fake message receive jobs and attachment download jobs, etc. |
as they return
null
ongetThumbnailUri()
.Proceed-only-if-getThumbnailUri()-not-null check was introduced in #3412 (aa37d6e) to prevent empty image previews.
2.18.1
on CM12.1 and Z1c 5.0.2
The text was updated successfully, but these errors were encountered: