Skip to content

Commit d6b9059

Browse files
authored
Merge pull request #4 from defold/bugfixs
Fixed bug with platforms and wrong JNI call
2 parents cc8b2d8 + 1064763 commit d6b9059

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

webview/src/webview_android.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ int Platform_SetPosition(lua_State* L, int webview_id, int x, int y, int width,
206206
{
207207
CHECK_WEBVIEW_AND_RETURN();
208208
JNIEnv* env = Attach();
209-
int visible = env->CallIntMethod(g_WebView.m_WebViewJNI, g_WebView.m_SetPosition, webview_id, x, y, width, height);
209+
env->CallVoidMethod(g_WebView.m_WebViewJNI, g_WebView.m_SetPosition, webview_id, x, y, width, height);
210210
Detach();
211-
return visible;
211+
return 0;
212212
}
213213

214214
#undef CHECK_WEBVIEW_AND_RETURN

webview/src/webview_null.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
#if !defined(DM_PLATFORM_ANDROID) && !defined(DM_PLATFORM_IOS)
12
extern "C" void WebViewExternal()
23
{
34

45
}
6+
#endif

0 commit comments

Comments
 (0)