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 97bf616db1
commit a612a89ac6

View file

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