diff options
author | Robin Watts <robin.watts@artifex.com> | 2014-04-01 18:08:25 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-04-01 18:12:17 +0100 |
commit | 06832d88b710cbe26a626b4f7c699432e280b2d4 (patch) | |
tree | 663b6e1fbfb51221f68dd0bc212152ad4a93f1f8 /platform/android/src | |
parent | 0b8772e797d5707a81a8774bb6dda33ec04c74eb (diff) | |
download | mupdf-06832d88b710cbe26a626b4f7c699432e280b2d4.tar.xz |
Fix Android build w.r.t. mujs.
The get_globals helper function only works on non-class objects.
Hence 'MuPDFCore_javascriptSupported' can't be a static function.
Diffstat (limited to 'platform/android/src')
-rw-r--r-- | platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java | 2 | ||||
-rw-r--r-- | platform/android/src/com/artifex/mupdfdemo/MuPDFPageView.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java index d5915f4d..ecdeccc7 100644 --- a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java +++ b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java @@ -70,7 +70,7 @@ public class MuPDFCore private native boolean hasChangesInternal(); private native void saveInternal(); - public static native boolean javascriptSupported(); + public native boolean javascriptSupported(); public MuPDFCore(Context context, String filename) throws Exception { diff --git a/platform/android/src/com/artifex/mupdfdemo/MuPDFPageView.java b/platform/android/src/com/artifex/mupdfdemo/MuPDFPageView.java index 2b8949eb..32deb029 100644 --- a/platform/android/src/com/artifex/mupdfdemo/MuPDFPageView.java +++ b/platform/android/src/com/artifex/mupdfdemo/MuPDFPageView.java @@ -340,7 +340,7 @@ public class MuPDFPageView extends PageView implements MuPDFView { mSelectedAnnotationIndex = -1; setItemSelectBox(null); - if (!MuPDFCore.javascriptSupported()) + if (!mCore.javascriptSupported()) return Hit.Nothing; if (mWidgetAreas != null) { |