2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +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;
}
if (numFiles == 1 && currentNetworkPacket.has("open")) {
if (numFiles == 1 && currentNetworkPacket.getBoolean("open", false)) {
receiveNotification.cancel();
openFile(fileDocument);
} else {