summaryrefslogtreecommitdiff
path: root/platform/android/build.sh
diff options
context:
space:
mode:
authorMatt Holgate <matt@emobix.co.uk>2014-07-02 16:42:25 +0100
committerMatt Holgate <matt@emobix.co.uk>2014-07-02 16:42:25 +0100
commit8d62114762092e31f3465e17d764d92c94ac4fa5 (patch)
tree85b1044ed3b4dc64a4d23c9d69743ff3a5ea54d7 /platform/android/build.sh
parent2fc6ce674a746af2a0b20731f302cac7ea120f0f (diff)
downloadmupdf-8d62114762092e31f3465e17d764d92c94ac4fa5.tar.xz
Fix opening files from Email app.
On 2.3.x, opening files from the Android email app (not Gmail), was causing a crash due to a SecurityException. On 4.x, it was failing with an error message. I think we should have just been calling getContentResolver().openInputStream(uri) to get the file data, rather than reading the row from the content resolver and looking at the _data field. On 2.3.x querying this row caused a security error. On 4.x, we got back a _data field containing a path, but this path was internal to the email app, and not for our consumption. Previously we were calling openInputStream() only as a fallback; now we try it first, and fall back to the other method if that fails. I suspect we can delete the other code, but I can't test on the 3.x version of the Transformer Prime, so I'm leaving it be for now.
Diffstat (limited to 'platform/android/build.sh')
0 files changed, 0 insertions, 0 deletions