mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Ladybird/Android: Move JavaEnvironment helper to Ladybird namespace
This commit is contained in:
parent
b8ede72107
commit
a93507231c
Notes:
sideshowbarker
2024-07-17 07:25:39 +09:00
Author: https://github.com/ADKaster
Commit: a93507231c
Pull-request: https://github.com/SerenityOS/serenity/pull/21214
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/bugaevc
3 changed files with 5 additions and 4 deletions
|
|
@ -64,7 +64,7 @@ Java_org_serenityos_ladybird_LadybirdActivity_initNativeCode(JNIEnv* env, jobjec
|
|||
|
||||
auto* event_loop_manager = new Ladybird::ALooperEventLoopManager(timer_service_ref);
|
||||
event_loop_manager->on_did_post_event = [] {
|
||||
JavaEnvironment env(global_vm);
|
||||
Ladybird::JavaEnvironment env(global_vm);
|
||||
env.get()->CallVoidMethod(s_java_instance, s_schedule_event_loop_method);
|
||||
};
|
||||
Core::EventLoopManager::install(*event_loop_manager);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue