summaryrefslogtreecommitdiff
path: root/sal/android/lo-bootstrap.c
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-01-26 12:45:42 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-01-26 13:32:14 +0200
commit052fe1a7700e834d9363be6da88d3fea71e879c3 (patch)
treef7a1501cb9b3f1225fa9b06946e3f1281273df4f /sal/android/lo-bootstrap.c
parent85f0cd34dbfc0dcc81da5ac0a046812673b40bb6 (diff)
Call the JavaVM's AttachCurrentThread(), can't hurt...
Diffstat (limited to 'sal/android/lo-bootstrap.c')
-rw-r--r--sal/android/lo-bootstrap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/android/lo-bootstrap.c b/sal/android/lo-bootstrap.c
index 59960b31e1c6..9c2c3da8de15 100644
--- a/sal/android/lo-bootstrap.c
+++ b/sal/android/lo-bootstrap.c
@@ -1491,6 +1491,8 @@ android_main(struct android_app* state)
sleep(sleep_time);
}
+ (*(*state->activity->vm)->AttachCurrentThread)(state->activity->vm, &env, 0);
+
app = state;
memset(&engine, 0, sizeof(engine));