rust-mobile / android-activity

Glue for building Rust applications on Android with NativeActivity or GameActivity
238 stars 46 forks source link

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

Open juzpermsky opened 3 months ago

juzpermsky commented 3 months ago

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.