-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
C - needs investigationIssue must be confirmed and researchedIssue must be confirmed and researchedDS - androidAffects the Android backendAffects the Android backendS - apiDesign and usabilityDesign and usability
Description
Winit shouldn't be assuming that it's safe to simply terminate the current process via std::process:exit after the event loop returns.
On Android it's possible to run multiple activities in a single process and it's also possible that an application is based on some Java/Kotlin subclass of an Activity that may be expecting various lifecycle events that could be short circuited when Winit simply calls std::process:exit.
Instead there should probably be some logic that leads to calling ANativeActivity_finish (i.e. something to indirectly call Activity::finish() in the JVM) and then entering an infinite AndroidApp::poll_events() loop instead.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C - needs investigationIssue must be confirmed and researchedIssue must be confirmed and researchedDS - androidAffects the Android backendAffects the Android backendS - apiDesign and usabilityDesign and usability