diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-03-11 17:50:54 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-11 17:50:54 +0000 |
commit | e8afed7205f32d776ba406b167b5097d728da5f6 (patch) | |
tree | aec2ca8cb44546d183da35f6161f6b9d74d63cdb /platform/android/src/com | |
parent | 83423e5c044fc054cb219ef14798d30832cdd8e7 (diff) | |
download | mupdf-e8afed7205f32d776ba406b167b5097d728da5f6.tar.xz |
Bug 696634: Android: Allow filenames including hash.
We were converting from a File to a filename then to a Uri
using Uri.parse, but Uri.parse has problems with hash marks.
Instead convert direct from File to Uri.
Diffstat (limited to 'platform/android/src/com')
-rw-r--r-- | platform/android/src/com/artifex/mupdfdemo/ChoosePDFActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/ChoosePDFActivity.java b/platform/android/src/com/artifex/mupdfdemo/ChoosePDFActivity.java index da7eafb8..f6068bac 100644 --- a/platform/android/src/com/artifex/mupdfdemo/ChoosePDFActivity.java +++ b/platform/android/src/com/artifex/mupdfdemo/ChoosePDFActivity.java @@ -201,7 +201,7 @@ public class ChoosePDFActivity extends ListActivity { position -= mDirs.length; - Uri uri = Uri.parse(mFiles[position].getAbsolutePath()); + Uri uri = Uri.fromFile(mFiles[position]); Intent intent = new Intent(this,MuPDFActivity.class); intent.setAction(Intent.ACTION_VIEW); intent.setData(uri); |