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:
parent
6d77d814a8
commit
173093d314
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user