When an empty file is send from the desktop SharePlugin onPacketReceived
does not see a payload so the packet is discarded
Details
Details
- Reviewers
albertvaka - Group Reviewers
KDE Connect - Commits
- R225:04e605bcf90f: Handle receiving an empty file
Send an empty file from the desktop
Verify that a notification is shown notifying the user that a file was received and that file has been created in the filesystem
Diff Detail
Diff Detail
- Repository
- R225 KDE Connect - Android application
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java | ||
---|---|---|
130 | I think checking for payload is unnecessary now |
src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java | ||
---|---|---|
246 | On the desktop side this checks hasPayload() instead. I don't think it changes anything but better to be consistent. |
src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java | ||
---|---|---|
131 | Remove log? |