example 'meshtastic': fix background mode on android; revisions

This commit is contained in:
pls.153 2024-03-02 18:07:24 +01:00
parent 44bd77cb08
commit 3585e7886a
7 changed files with 13 additions and 3 deletions

View file

@ -108,6 +108,7 @@ QT::QT() : QObject() {
[&](Qt::ApplicationState state) {
if (state == Qt::ApplicationInactive) {
ble->setBackgroundMode(true);
ecl_fun("app:on-background-mode");
} else if (state == Qt::ApplicationActive) {
ble->setBackgroundMode(false);
}