Fix: send file on android api 30 (fixes #32)
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Dorian Zedler 2022-08-11 12:44:39 +02:00
parent 38bdf15f40
commit 447c1135dd
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -260,9 +260,9 @@ public class QShareUtils
sendIntent.setType(mimeType); sendIntent.setType(mimeType);
sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); 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) { public static boolean viewFile(String filePath, String title, String mimeType, int requestId) {