src/core/android/SDL_android.c
changeset 9268 7f2833a2191b
parent 9231 ec22701132b5
child 9271 8f71cb5dc099
equal deleted inserted replaced
9267:6fe4583d7e1f 9268:7f2833a2191b
   384     SDL_SendEditingText(utftext, 0, 0);
   384     SDL_SendEditingText(utftext, 0, 0);
   385 
   385 
   386     (*env)->ReleaseStringUTFChars(env, text, utftext);
   386     (*env)->ReleaseStringUTFChars(env, text, utftext);
   387 }
   387 }
   388 
   388 
   389 jstring Java_org_libsdl_app_SDLActivity_nativeGetHint(JNIEnv* env, jclass cls, jstring name) {
   389 JNIEXPORT jstring JNICALL Java_org_libsdl_app_SDLActivity_nativeGetHint(JNIEnv* env, jclass cls, jstring name) {
   390     const char *utfname = (*env)->GetStringUTFChars(env, name, NULL);
   390     const char *utfname = (*env)->GetStringUTFChars(env, name, NULL);
   391     const char *hint = SDL_GetHint(utfname);
   391     const char *hint = SDL_GetHint(utfname);
   392 
   392 
   393     jstring result = (*env)->NewStringUTF(env, hint);
   393     jstring result = (*env)->NewStringUTF(env, hint);
   394     (*env)->ReleaseStringUTFChars(env, name, utfname);
   394     (*env)->ReleaseStringUTFChars(env, name, utfname);