src/core/android/SDL_android.c
branchapk
changeset 8897 fff9c0b9f1fb
parent 8896 d931167c375a
child 8900 537445b25e4e
equal deleted inserted replaced
8896:d931167c375a 8897:fff9c0b9f1fb
   383     SDL_SendEditingText(utftext, 0, 0);
   383     SDL_SendEditingText(utftext, 0, 0);
   384 
   384 
   385     (*env)->ReleaseStringUTFChars(env, text, utftext);
   385     (*env)->ReleaseStringUTFChars(env, text, utftext);
   386 }
   386 }
   387 
   387 
   388 jstring Java_org_libsdl_app_SDLActivity_getHint(JNIEnv* env, jclass cls, jstring name) {
   388 jstring Java_org_libsdl_app_SDLActivity_nativeGetHint(JNIEnv* env, jclass cls, jstring name) {
   389     const char *utfname = (*env)->GetStringUTFChars(env, name, NULL);
   389     const char *utfname = (*env)->GetStringUTFChars(env, name, NULL);
   390     const char *hint = SDL_GetHint(utfname);
   390     const char *hint = SDL_GetHint(utfname);
   391 
   391 
   392     jstring result = (*env)->NewStringUTF(env, hint);
   392     jstring result = (*env)->NewStringUTF(env, hint);
   393     (*env)->ReleaseStringUTFChars(env, name, utfname);
   393     (*env)->ReleaseStringUTFChars(env, name, utfname);