diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-03-15 12:27:10 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-16 07:58:20 -0700 |
commit | 0b72495413e8b060b58b96aa6d6a0ce96baa168c (patch) | |
tree | 6517fa914d2ffd9ba1317e100e8f92f419990430 /mobile-widgets/qmlmanager.h | |
parent | 4619b4932eb2f75f8026b79e8a810ddf5f5fd7e9 (diff) | |
download | subsurface-0b72495413e8b060b58b96aa6d6a0ce96baa168c.tar.gz |
android/usb: simply restart the download after receiving permission
If the user tries to download from a device that he hasn't given the app
permission to read from, Android will pop up a dialogue asking for that
permission. With this after giving the permission we continue (well,
technically, restart) the download which is likely the expected behavior.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index c0d036aec..7bd9e5e89 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -235,6 +235,7 @@ public slots: void rescanConnections(); #if defined(Q_OS_ANDROID) void showDownloadPage(QAndroidJniObject usbDevice); + void restartDownload(QAndroidJniObject usbDevice); void androidUsbPopoulateConnections(); QString getProductVendorConnectionIdx(android_usb_serial_device_descriptor descriptor); #endif @@ -307,6 +308,7 @@ signals: void oldStatusChanged(); void undoTextChanged(); void redoTextChanged(); + void restartDownloadSignal(); // From upload process void uploadFinish(bool success, const QString &text); |