Skip to content
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

Share URIs for valid file / file paths only #309

Merged
merged 1 commit into from
Jun 29, 2018

Conversation

archie94
Copy link
Collaborator

While sharing an Event consisting of any EventTriggers for which we do not have a file we get a toast "Couldn't attach file". For multiple such triggers in one event the toast persists for a long time. This may result in very disturbing user experience. This PR aims to solve that.

This will also close #181 since that crash was caused by NPE while attempting to create a File from a null string.

- ignore URIs for trigger for which getMimeType() or getPath() is null

Signed-off-by: Arka Prava Basu <[email protected]>
@n8fr8 n8fr8 merged commit f954729 into guardianproject:master Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App crash while attempting to share a Haven Log
2 participants