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.
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: