Android: correctly check for empty path

The comparison against the empty string caused things to error out
when only one file was given.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2022-08-30 20:46:01 +00:00
parent 6d77d814a8
commit 173093d314

View file

@ -70,7 +70,7 @@ public class SubsurfaceMobileActivity extends QtActivity
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);