From 2e3fcbaf6b0c71e178a681476dc1b997b3bd1bbe Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Fri, 5 Apr 2013 14:43:29 +0100 Subject: Android: handle features not supported other than for PDF files --- android/src/com/artifex/mupdfdemo/MuPDFActivity.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'android/src') 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; -- cgit v1.2.3