summaryrefslogtreecommitdiff
path: root/android/src
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-04-05 14:43:29 +0100
committerRobin Watts <robin.watts@artifex.com>2013-04-09 15:47:52 +0100
commit2e3fcbaf6b0c71e178a681476dc1b997b3bd1bbe (patch)
tree6bd48865b1ba6b4a6ee3173523526dc3da06f2de /android/src
parent64727a78d65ad550e0a2d5c8d614c503929046bd (diff)
downloadmupdf-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.java5
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;