From e6fefd5e939a6cd37716f5cac4ee8c54295c0058 Mon Sep 17 00:00:00 2001 From: Paul Rouget Date: Wed, 7 Mar 2018 01:06:56 +0800 Subject: [PATCH] Send Awakened event on Android when event loop is woken up (#417) --- CHANGELOG.md | 1 + src/platform/android/mod.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3904ed4a..592be69f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Impl `Hash`, `PartialEq`, and `Eq` for `events::ModifiersState`. - Implement `MonitorId::get_hidpi_factor` for MacOS. - Added method `os::macos::MonitorIdExt::get_nsscreen() -> *mut c_void` that gets a `NSScreen` object matching the monitor ID. +- Send `Awakened` event on Android when event loop is woken up. # Version 0.11.1 (2018-02-19) diff --git a/src/platform/android/mod.rs b/src/platform/android/mod.rs index 2735265e..c9861c24 100644 --- a/src/platform/android/mod.rs +++ b/src/platform/android/mod.rs @@ -106,6 +106,9 @@ impl EventsLoop { event: WindowEvent::Refresh, }) } + android_glue::Event::Wake => { + Some(Event::Awakened) + } _ => { None }