rust-mobile/android-activity

There is no AndroidApp::native_window() during MainEvent::TerminateWindow

juzpermsky opened this issue · 0 comments

This description does not correspond to reality:

/// Upon receiving this command, [AndroidApp::native_window()] still
/// returns the existing window; after returning from the [AndroidApp::poll_events()]
/// callback then [AndroidApp::native_window()] will return None.

As we can see, poll_events's callback (with TerminateWindow) is triggered after the native window is set to None.