-
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.
Handle destruction of activity more gracefully
Since Qt will put the app in a state where it can't recover from (the UI can never be shown again) we have to terminate everything else as well. Otherwise Go threads and the service/notification would still be around but one could never access the UI again. This is of course not ideal. Ideally, the activity lifecycle should be independent from the service livecycle and the service should be able to outlive the activity. The activity should be able to re-create itself once destroyed.
- Loading branch information
Showing
3 changed files
with
44 additions
and
23 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