There was an error while loading. Please reload this page.
1 parent d6629ac commit adfd6a1Copy full SHA for adfd6a1
packages/desktop/src/event_handlers.rs
@@ -53,12 +53,17 @@ impl WindowEventHandlers {
53
target: &EventLoopWindowTarget<UserWindowEvent>,
54
) {
55
for (_, handler) in self.handlers.borrow_mut().iter_mut() {
56
+ // Avoid interacting with the runtime while something else is using it
57
+ #[cfg(target_os = "android")]
58
+ let _lock = crate::android_sync_lock::android_runtime_lock();
59
+
60
// if this event does not apply to the window this listener cares about, continue
61
if let Event::WindowEvent { window_id, .. } = event {
62
if *window_id != handler.window_id {
63
continue;
64
}
65
66
67
(handler.handler)(event, target)
68
69
0 commit comments