guardianproject / haven

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors
https://guardianproject.github.io/haven/
GNU General Public License v3.0
6.62k stars 728 forks source link

Share URIs for valid file / file paths only #309

Closed archie94 closed 6 years ago

archie94 commented 6 years ago

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.