diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-04-05 14:43:29 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-04-09 15:47:52 +0100 |
commit | 2e3fcbaf6b0c71e178a681476dc1b997b3bd1bbe (patch) | |
tree | 6bd48865b1ba6b4a6ee3173523526dc3da06f2de /android/src | |
parent | 64727a78d65ad550e0a2d5c8d614c503929046bd (diff) | |
download | mupdf-2e3fcbaf6b0c71e178a681476dc1b997b3bd1bbe.tar.xz |
Android: handle features not supported other than for PDF files
Diffstat (limited to 'android/src')
-rw-r--r-- | android/src/com/artifex/mupdfdemo/MuPDFActivity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/src/com/artifex/mupdfdemo/MuPDFActivity.java b/android/src/com/artifex/mupdfdemo/MuPDFActivity.java index 15b16443..7cca742b 100644 --- a/android/src/com/artifex/mupdfdemo/MuPDFActivity.java +++ b/android/src/com/artifex/mupdfdemo/MuPDFActivity.java @@ -792,6 +792,11 @@ public class MuPDFActivity extends Activity } private void printDoc() { + if (!core.fileFormat().startsWith("PDF")) { + showInfo(getString(R.string.format_currently_not_supported)); + return; + } + Intent myIntent = getIntent(); Uri docUri = myIntent != null ? myIntent.getData() : null; |