Commit 881ccccbcf326389227315f3e3425cd5f9c5f6cf

Ryan C. Gordon 2016-01-05T05:31:33

Android: Fixed up drop events for new interface.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c
index f6e0a83..44f6e80 100644
--- a/src/core/android/SDL_android.c
+++ b/src/core/android/SDL_android.c
@@ -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 */