-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep main Qt event loop running when Android app is in background
* Process Syncthing events and possibly update Android notifications * React to network connection changes (metered vs. not metered) while the app is in background This might not be ideal: * According to the documentation it'll lead to crashes when the app tries to draw while in background. I didn't run into any problems after a brief test so far, though. * UI code will run unneccassarily while the app is in the background. The code is already unassinging the main thread affinity of models to reduce this. It is unfortunately not possible to move the QML engine due to its bindings (`QObject::moveToThread: Can not move objects that contain bindings or are used in bindings to a new thread.`).
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters