2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 06:05:12 +00:00

Since we renamed the capabilities, disable them on old clients

We don't want old kdeconnects to try to use the renamed capabilities.
This commit is contained in:
Albert Vaca
2016-05-31 17:23:55 +02:00
parent d253fcfd0b
commit d539cd704b

View File

@@ -832,7 +832,8 @@ public class Device implements BaseLink.PackageReceiver {
onPluginsChanged();
if (capabilitiesChanged && isReachable() && isPaired()) {
//Only send capabilities to devices using protocol version 6 or later
if (capabilitiesChanged && isReachable() && isPaired() && protocolVersion >= 6) {
NetworkPackage np = new NetworkPackage(NetworkPackage.PACKAGE_TYPE_CAPABILITIES);
np.set("IncomingCapabilities", new ArrayList<>(newSupportedIncomingInterfaces));
np.set("OutgoingCapabilities", new ArrayList<>(newSupportedOutgoingInterfaces));