Android: Notify listener about app state changes when quitting

Specifically the isStarted flag is set to false in QtNative.quitApp.
This should be listened to by functionality interface providers to
unregister their interfaces, in case the Activity is restarted.

Task-number: QTBUG-118874
Change-Id: Iadf5ab548c4e865c89ed4b83d258f09d6c767e16
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
bb10
Petri Virkkunen 2024-03-26 13:57:24 +02:00
parent e46adeb599
commit 9efe78a2a1
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ class QtNative
if (isServiceValid())
m_service.get().stopSelf();
m_stateDetails.isStarted = false;
// Likely no use to call notifyAppStateDetailsChanged at this point since we are exiting
notifyAppStateDetailsChanged(m_stateDetails);
});
}