diff options
author | Matt Holgate <matt@emobix.co.uk> | 2014-07-03 10:53:03 +0100 |
---|---|---|
committer | Matt Holgate <matt@emobix.co.uk> | 2014-07-03 10:53:03 +0100 |
commit | 4f9f55bf8176ffbe75c958a93e1cc47c70f50e89 (patch) | |
tree | b72cd695f267877cf4375f40a937534e462a5601 /platform/android/jni/mupdf.c | |
parent | e07e988bd9ba2db63924cdc98eee3a6e6eb38873 (diff) | |
download | mupdf-4f9f55bf8176ffbe75c958a93e1cc47c70f50e89.tar.xz |
Fix incorrect syntax for class names in JNI.
Causes a crash on Android L/ART.
Diffstat (limited to 'platform/android/jni/mupdf.c')
-rw-r--r-- | platform/android/jni/mupdf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/jni/mupdf.c b/platform/android/jni/mupdf.c index b9578d44..ca13cc64 100644 --- a/platform/android/jni/mupdf.c +++ b/platform/android/jni/mupdf.c @@ -1537,7 +1537,7 @@ JNI_FN(MuPDFCore_addMarkupAnnotationInternal)(JNIEnv * env, jobject thiz, jobjec float zoom = glo->resolution / 72; zoom = 1.0 / zoom; fz_scale(&ctm, zoom, zoom); - pt_cls = (*env)->FindClass(env, "android.graphics.PointF"); + pt_cls = (*env)->FindClass(env, "android/graphics/PointF"); if (pt_cls == NULL) fz_throw(ctx, FZ_ERROR_GENERIC, "FindClass"); x_fid = (*env)->GetFieldID(env, pt_cls, "x", "F"); if (x_fid == NULL) fz_throw(ctx, FZ_ERROR_GENERIC, "GetFieldID(x)"); @@ -1610,7 +1610,7 @@ JNI_FN(MuPDFCore_addInkAnnotationInternal)(JNIEnv * env, jobject thiz, jobjectAr float zoom = glo->resolution / 72; zoom = 1.0 / zoom; fz_scale(&ctm, zoom, zoom); - pt_cls = (*env)->FindClass(env, "android.graphics.PointF"); + pt_cls = (*env)->FindClass(env, "android/graphics/PointF"); if (pt_cls == NULL) fz_throw(ctx, FZ_ERROR_GENERIC, "FindClass"); x_fid = (*env)->GetFieldID(env, pt_cls, "x", "F"); if (x_fid == NULL) fz_throw(ctx, FZ_ERROR_GENERIC, "GetFieldID(x)"); |