2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 13:17:43 +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;
}
ClipboardListener.instance(context).setText(content);
if (np.has("content")) { // change clipboard if content is in NetworkPacket
ClipboardListener.instance(context).setText(content);
}
return true;
}
throw new UnsupportedOperationException("Unknown packet type: " + np.getType());