Always schedule a frame on app did become active (flutter/engine#3910)

This commit is contained in:
xster
2017-07-20 10:54:08 -07:00
committed by GitHub
parent 929da4904d
commit b355dec44a

View File

@@ -327,6 +327,12 @@ bool Engine::HandleLifecyclePlatformMessage(blink::PlatformMessage* message) {
activity_running_ = true;
StartAnimatorIfPossible();
}
// Always schedule a frame when the app does become active as per API
// recommendation https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1622956-applicationdidbecomeactive?language=objc
if (state == "AppLifecycleState.resumed" && have_surface_) {
ScheduleFrame();
}
return false;
}