summaryrefslogtreecommitdiff
path: root/platform/android/src/com/artifex
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/com/artifex')
-rw-r--r--platform/android/src/com/artifex/mupdfdemo/ChoosePDFActivity.java2
-rw-r--r--platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/ChoosePDFActivity.java b/platform/android/src/com/artifex/mupdfdemo/ChoosePDFActivity.java
index f74ccf4f..da7eafb8 100644
--- a/platform/android/src/com/artifex/mupdfdemo/ChoosePDFActivity.java
+++ b/platform/android/src/com/artifex/mupdfdemo/ChoosePDFActivity.java
@@ -106,6 +106,8 @@ public class ChoosePDFActivity extends ListActivity {
return true;
if (fname.endsWith(".cbz"))
return true;
+ if (fname.endsWith(".epub"))
+ return true;
if (fname.endsWith(".png"))
return true;
if (fname.endsWith(".jpe"))
diff --git a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
index 750540b7..be6f6fbf 100644
--- a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
+++ b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
@@ -128,11 +128,10 @@ public class MuPDFCore
wasOpenedFromBuffer = true;
}
- public int countPages()
+ public int countPages()
{
if (numPages < 0)
numPages = countPagesSynchronized();
-
return numPages;
}