2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

fix: change clipboard content when content is really in NetworkPacket

This commit is contained in:
Marx Zhu
2024-03-25 15:54:35 +08:00
committed by Albert Vaca Cintora
parent eed7cad329
commit 91867481a8

View File

@@ -77,7 +77,9 @@ public class ClipboardPlugin extends Plugin {
return false; return false;
} }
if (np.has("content")) { // change clipboard if content is in NetworkPacket
ClipboardListener.instance(context).setText(content); ClipboardListener.instance(context).setText(content);
}
return true; return true;
} }
throw new UnsupportedOperationException("Unknown packet type: " + np.getType()); throw new UnsupportedOperationException("Unknown packet type: " + np.getType());