mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue