Skip to content

Commit 9c84ebd

Browse files
committed
use WebView_AndroidGetJNIEnv for non-sdl2
1 parent e62d33c commit 9c84ebd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pythonforandroid/recipes/android/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ def prebuild_arch(self, arch):
7777
fh.write(
7878
'#define SDL_ANDROID_GetJNIEnv SDL_AndroidGetJNIEnv\n'
7979
)
80+
else:
81+
fh.write('JNIEnv *WebView_AndroidGetJNIEnv(void);\n')
82+
fh.write(
83+
'#define SDL_ANDROID_GetJNIEnv WebView_AndroidGetJNIEnv\n'
84+
)
8085

8186

8287
recipe = AndroidRecipe()

0 commit comments

Comments
 (0)