Commit 28a4a6b8 authored by Holger Kaelberer's avatar Holger Kaelberer Committed by Holger Kaelberer
Browse files

Android: stop all audio playback when application leaves active state

We continued playing voices and effects also when returning to home
screen or switching to another application.
parent c1790364
......@@ -34,6 +34,15 @@ Window {
minimumHeight: 400
title: "GCompris"
property var applicationState: Qt.application.state
onApplicationStateChanged: {
if (ApplicationInfo.isMobile && applicationState != Qt.ApplicationActive) {
onClosing: Core.quit()
GCAudio {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment