fix variant crashes: had forgotten PKG_PATH on new method

This commit is contained in:
Eric House 2015-08-02 16:15:32 -07:00
parent a26e642c8e
commit 56082d2f7b

View file

@ -643,11 +643,11 @@ static void
and_util_deviceRegistered( XW_UtilCtxt* uc, DevIDType typ,
const XP_UCHAR* idRelay )
{
UTIL_CBK_HEADER( "deviceRegistered", "(Lorg/eehouse/android/xw4/"
"jni/UtilCtxt$DevIDType;Ljava/lang/String;)V" );
UTIL_CBK_HEADER( "deviceRegistered",
"(L" PKG_PATH("jni/UtilCtxt$DevIDType") ";Ljava/lang/String;)V" );
jstring jstr = (*env)->NewStringUTF( env, idRelay );
jobject jtyp = intToJEnum( env, typ,
"org/eehouse/android/xw4/jni/UtilCtxt$DevIDType" );
PKG_PATH("jni/UtilCtxt$DevIDType") );
(*env)->CallVoidMethod( env, util->jutil, mid, jtyp, jstr );
deleteLocalRefs( env, jstr, jtyp, DELETE_NO_REF );
UTIL_CBK_TAIL();