| 629 | } |
| 630 | |
| 631 | void App::handleAndroidIntent(const QString &data, bool fromNotification) |
| 632 | { |
| 633 | qDebug() << "Handling Android intent: " << data; |
| 634 | Q_UNUSED(fromNotification) |
| 635 | if (data == QLatin1String("internalErrors")) { |
| 636 | emit internalErrorsRequested(); |
| 637 | } else if (data == QLatin1String("connectionErrors")) { |
| 638 | emit connectionErrorsRequested(); |
| 639 | } else if (data.startsWith(QLatin1String("sharedtext:"))) { |
| 640 | emit textShared(data.mid(11)); |
| 641 | } else if (data.startsWith(QLatin1String("newdev:"))) { |
| 642 | emit newDeviceTriggered(data.mid(7)); |
| 643 | } else if (data.startsWith(QLatin1String("newfolder:"))) { |
| 644 | const auto folderRef = splitFolderRef(QStringView(data).mid(10)); |
| 645 | emit newDirTriggered(folderRef.deviceId.toString(), folderRef.folderId.toString(), folderRef.folderLabel.toString()); |
| 646 | } |
| 647 | } |
| 648 | |
| 649 | void App::handleStoragePermissionChanged(bool storagePermissionGranted) |
| 650 | { |
nothing calls this directly
no test coverage detected