Timestamp on changes to clipboards so that when a new device connects it can sync both clipboards to the most recent updated clipboard.
Details
Details
- Reviewers
albertvaka - Group Reviewers
KDE Connect - Commits
- R225:5dc65ee9094d: Clipboard sync on new connections
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/ClibpoardPlugin/ClipboardListener.java | ||
---|---|---|
95 | Space after { | |
src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java | ||
74 | Spaces | |
90–91 | It would be nice to write down the packet format, especially since a new field has just appeared. I usually do this in a block comment on the packet type definition (PACKET_TYPE_CLIPBOARD) |
src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardListener.java | ||
---|---|---|
99 | Add space |
src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java | ||
---|---|---|
75 | If we send the contents onCreate, we probably don't need this. |