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:
committed by
Albert Vaca Cintora
parent
eed7cad329
commit
91867481a8
@@ -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());
|
||||||
|
Reference in New Issue
Block a user