2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-01 06:35:09 +00:00

Only open file if open is actually true

This commit is contained in:
Nicolas Fella
2019-06-14 15:47:16 +02:00
parent 6e053a7e95
commit a61cb875f1

View File

@@ -189,7 +189,7 @@ public class CompositeReceiveFileJob extends BackgroundJob<Device, Void> {
numFiles = totalNumFiles; numFiles = totalNumFiles;
} }
if (numFiles == 1 && currentNetworkPacket.has("open")) { if (numFiles == 1 && currentNetworkPacket.getBoolean("open", false)) {
receiveNotification.cancel(); receiveNotification.cancel();
openFile(fileDocument); openFile(fileDocument);
} else { } else {