mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 05:37:43 +00:00
Attribute not needed
This commit is contained in:
parent
22edb24230
commit
9a2167774b
@ -53,7 +53,6 @@ public class LanPairingHandler extends BasePairingHandler {
|
||||
public NetworkPackage createPairPackage() {
|
||||
NetworkPackage np = new NetworkPackage(NetworkPackage.PACKAGE_TYPE_PAIR);
|
||||
np.set("pair", true);
|
||||
np.set("link", mBaseLink.getName());
|
||||
SharedPreferences globalSettings = PreferenceManager.getDefaultSharedPreferences(mDevice.getContext());
|
||||
String publicKey = "-----BEGIN PUBLIC KEY-----\n" + globalSettings.getString("publicKey", "").trim()+ "\n-----END PUBLIC KEY-----\n";
|
||||
np.set("publicKey", publicKey);
|
||||
@ -63,10 +62,6 @@ public class LanPairingHandler extends BasePairingHandler {
|
||||
@Override
|
||||
public void packageReceived(NetworkPackage np) throws Exception{
|
||||
|
||||
if (!np.getString("link", mBaseLink.getName()).equals(mBaseLink.getName())) {
|
||||
return;
|
||||
}
|
||||
|
||||
boolean wantsPair = np.getBoolean("pair");
|
||||
|
||||
if (wantsPair == isPaired()) {
|
||||
@ -199,7 +194,6 @@ public class LanPairingHandler extends BasePairingHandler {
|
||||
mPairStatus = PairStatus.NotPaired;
|
||||
NetworkPackage np = new NetworkPackage(NetworkPackage.PACKAGE_TYPE_PAIR);
|
||||
np.set("pair", false);
|
||||
np.set("link", mBaseLink.getName());
|
||||
mDevice.sendPackage(np);
|
||||
}
|
||||
|
||||
@ -239,7 +233,6 @@ public class LanPairingHandler extends BasePairingHandler {
|
||||
mPairStatus = PairStatus.NotPaired;
|
||||
NetworkPackage np = new NetworkPackage(NetworkPackage.PACKAGE_TYPE_PAIR);
|
||||
np.set("pair", false);
|
||||
np.set("link", mBaseLink.getName());
|
||||
mDevice.sendPackage(np);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user