summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-09 07:12:32 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-11 11:14:22 -0700
commitfbf94d4a7bda22e0b15b8705ed64968c2a57d9dc (patch)
tree3ca0f226d21712e8d47556f3f07957f68102cc21 /mobile-widgets/qmlmanager.cpp
parentb85098d401a8c3676beb4beac39a39c53f73baeb (diff)
downloadsubsurface-fbf94d4a7bda22e0b15b8705ed64968c2a57d9dc.tar.gz
QML UI: add callback to run after app is fully initialized
And then use that to check for pending Intents on Android. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 94a47e51c..e502410af 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1856,3 +1856,15 @@ void QMLManager::showDownloadPage(QString deviceString)
m_pluggedInDeviceName = strdup(qPrintable(name));
emit pluggedInDeviceNameChanged();
}
+
+#if defined(Q_OS_ANDROID)
+// implemented in core/android.cpp
+void checkPendingIntents();
+#endif
+
+void QMLManager::appInitialized()
+{
+#if defined(Q_OS_ANDROID)
+ checkPendingIntents();
+#endif
+}