summaryrefslogtreecommitdiff
path: root/android/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'android/src/com')
-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;