From 447c1135dd3629646b08ea1e84b217f39d56aedb Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Thu, 11 Aug 2022 12:44:39 +0200 Subject: [PATCH] Fix: send file on android api 30 (fixes #32) --- android/src/org/ekkescorner/utils/QShareUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/org/ekkescorner/utils/QShareUtils.java b/android/src/org/ekkescorner/utils/QShareUtils.java index 38a07a7..22ec5a2 100755 --- a/android/src/org/ekkescorner/utils/QShareUtils.java +++ b/android/src/org/ekkescorner/utils/QShareUtils.java @@ -260,9 +260,9 @@ public class QShareUtils sendIntent.setType(mimeType); sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - sendIntent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION); - return createCustomChooserAndStartActivity(sendIntent, title, requestId, uri); + QtNative.activity().startActivity(Intent.createChooser(sendIntent, null)); + return true; } public static boolean viewFile(String filePath, String title, String mimeType, int requestId) {