diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-08-06 18:29:27 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-11 11:14:22 -0700 |
commit | 0b242bcaca6a6cb1f0ae734f8ea1c1b22a01648b (patch) | |
tree | 3f0b0333bbba41e1bcb9a378dc326e7ea537cafd /core/android.cpp | |
parent | a3ddd823bbba8f72495c01e62e91639cc6b88694 (diff) | |
download | subsurface-0b242bcaca6a6cb1f0ae734f8ea1c1b22a01648b.tar.gz |
Android: notify the UI a dive computer was plugged in
And try to guess which one from the device string we get from the Intent.
The function is named to indicate its future use (because once the user
plugs in such a device, we should show the download page).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/android.cpp')
-rw-r--r-- | core/android.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/android.cpp b/core/android.cpp index 865a0ad7e..f64182b08 100644 --- a/core/android.cpp +++ b/core/android.cpp @@ -175,6 +175,9 @@ Java_org_subsurfacedivelog_mobile_SubsurfaceMobileActivity_setDeviceString(JNIEn const char *deviceString = env->GetStringUTFChars(javaDeviceString, NULL); Q_UNUSED (obj) LOG(deviceString); +#if defined(SUBSURFACE_MOBILE) + QMLManager::instance()->showDownloadPage(deviceString); +#endif env->ReleaseStringUTFChars(javaDeviceString, deviceString); return; } |