Skip to content

Commit

Permalink
Android: Fixed up drop events for new interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 5, 2016
1 parent eeb8999 commit 881cccc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/android/SDL_android.c
Expand Up @@ -144,8 +144,9 @@ void Java_org_libsdl_app_SDLActivity_onNativeDropFile(
jstring filename)
{
const char *path = (*env)->GetStringUTFChars(env, filename, NULL);
SDL_SendDropFile(path);
SDL_SendDropFile(NULL, path);
(*env)->ReleaseStringUTFChars(env, filename, path);
SDL_SendDropComplete(NULL);
}

/* Resize */
Expand Down

0 comments on commit 881cccc

Please sign in to comment.