2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

Deprecated sendPackageEncrypted

It's only called for compatibility with old devices
This commit is contained in:
Albert Vaca
2016-06-09 13:37:38 +02:00
parent 1ab07d201e
commit 09e1811bd8
2 changed files with 2 additions and 5 deletions

View File

@@ -90,5 +90,6 @@ public abstract class BaseLink {
//TO OVERRIDE, should be sync
public abstract void sendPackage(NetworkPackage np,Device.SendPackageStatusCallback callback);
@Deprecated
public abstract void sendPackageEncrypted(NetworkPackage np,Device.SendPackageStatusCallback callback, PublicKey key);
}

View File

@@ -212,11 +212,7 @@ public class LanLink extends BaseLink {
//Blocking, do not call from main thread
@Override
public void sendPackageEncrypted(NetworkPackage np, Device.SendPackageStatusCallback callback, PublicKey key) {
if (onSsl) {
sendPackageInternal(np, callback, null); // No need to encrypt
}else {
sendPackageInternal(np, callback, key);
}
sendPackageInternal(np, callback, key);
}
public void injectNetworkPackage(NetworkPackage np) {