Skip to content

Commit

Permalink
Android: correctly check for empty path
Browse files Browse the repository at this point in the history
The comparison against the empty string caused things to error out
when only one file was given.

Signed-off-by: Dirk Hohndel <[email protected]>
  • Loading branch information
dirkhh committed Aug 31, 2022
1 parent 6d77d81 commit 173093d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public boolean shareViaEmail(String subject, String recipient, String body, Stri
attachments.add(uri);

// if there is a second file name (that's for support emails) add it and set this up as support email as well
if (path2 != "") {
if (!path2.isEmpty()) {
fileToShare = new File(path2);
try {
uri = FileProvider.getUriForFile(QtNative.activity(), fileProviderAuthority, fileToShare);
Expand Down

0 comments on commit 173093d

Please sign in to comment.