url: patched to compile on Android.

This commit is contained in:
Ryan C. Gordon committed 2020-10-05 13:52:52 -04:00
1 parent 84f1b95008
commit 5f68812249
4 files changed
+8 -1

No files matched your search

-1
View File
@@ -18,7 +18,6 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "../SDL_internal.h"
#include "SDL_error.h"
+1
View File
@@ -25,6 +25,7 @@
int
SDL_SYS_OpenURL(const char *url)
{
jclass mActivityClass = Android_GetActivityClass();
JNIEnv *env = Android_JNI_GetEnv();
jstring jurl = (*env)->NewStringUTF(env, url);
const int ret = (*env)->CallStaticIntMethod(env, mActivityClass, midOpenURL, jurl);