diff options
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 069024cc8..332e4c921 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -617,7 +617,13 @@ if you have network connectivity and want to sync your data to cloud storage."), console.log("Download page requested by Android Intent, but adding/editing dive; no action taken") } else { console.log("Show download page for device " + pluggedInDeviceName) - diveList.showDownloadPage() + /* if we recognized the device, we'll pass in a triple of ComboBox indeces as "vendor;product;connection" */ + var vendorProductConnection = pluggedInDeviceName.split(';') + if (vendorProductConnection.length === 3) + diveList.showDownloadPage(vendorProductConnection[0], vendorProductConnection[1], vendorProductConnection[2]) + else + diveList.showDownloadPage() + console.log("done showing download page") } } |