beeware / briefcase-android-gradle-template

A template for generating Android Gradle projects with Briefcase
MIT License
21 stars 22 forks source link

Make event loop enqueue a wakeup when it first starts #58

Closed mhsmith closed 1 year ago

mhsmith commented 1 year ago

In https://github.com/beeware/toga/pull/1687 we use add_background_task before starting the event loop, to ensure the app is up and running before we start the test thread. But on Android, I found the task was never run.

This PR ensures that once the loop starts, any pending tasks are immediately scheduled.

PR Checklist: