mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-05 00:25:09 +00:00
Inform other devices we don't trust them when they talk to us
This commit is contained in:
@@ -209,8 +209,6 @@ public class Device implements BaseLink.PackageReceiver {
|
||||
|
||||
public void unpair() {
|
||||
|
||||
if (!isPaired()) return;
|
||||
|
||||
//Log.e("Device","Unpairing (unpair)");
|
||||
pairStatus = PairStatus.NotPaired;
|
||||
|
||||
@@ -452,7 +450,7 @@ public class Device implements BaseLink.PackageReceiver {
|
||||
}
|
||||
} else if (!isPaired()) {
|
||||
|
||||
//TODO: Notify the other side that we don't trust them
|
||||
unpair();
|
||||
Log.e("onPackageReceived","Device not paired, ignoring package!");
|
||||
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user