Change Suspended(true/false) => Suspended/Resumed (#959)
This commit is contained in:
parent
1193cada46
commit
f457c6a0b8
6 changed files with 17 additions and 13 deletions
|
|
@ -85,14 +85,14 @@ impl EventLoop {
|
|||
if let Some(cb) = self.suspend_callback.borrow().as_ref() {
|
||||
(*cb)(false);
|
||||
}
|
||||
Some(Event::Suspended(false))
|
||||
Some(Event::Resumed)
|
||||
},
|
||||
android_glue::Event::TermWindow => {
|
||||
// The activity went to background.
|
||||
if let Some(cb) = self.suspend_callback.borrow().as_ref() {
|
||||
(*cb)(true);
|
||||
}
|
||||
Some(Event::Suspended(true))
|
||||
Some(Event::Suspended)
|
||||
},
|
||||
android_glue::Event::WindowResized | android_glue::Event::ConfigChanged => {
|
||||
// Activity Orientation changed or resized.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue