Skip to content

Conversation

brarcher
Copy link
Owner

It was observed by one user on another app that uses
the same code that the Uri to filename lookup
failed with an IllegalStateException. The code which
converts a Uri to a file path may not be that great,
especially now that the app is expected to not receive
file Uris. Instead of determining the best way to lookup
the file names, as it is not that important it will be
removed.

It was observed by one user on another app that uses
the same code that the Uri to filename lookup
can fail with an IllegalStateException. The code which
converts a Uri to a file path may not be that great,
especially now that the app is expected to not receive
file Uris.

Instead of determining the best way to lookup the file
names, as it is not that important, the Uri is used directly.
This is both for printing the location after the import,
and determinimg the mimetype.
@brarcher brarcher merged commit 7b45cac into master Jan 20, 2018
@brarcher brarcher deleted the import-crash branch January 20, 2018 04:09
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.

1 participant