diff --git a/src/org/kde/kdeconnect/Device.java b/src/org/kde/kdeconnect/Device.java index 61850f4a..e73e3ef2 100644 --- a/src/org/kde/kdeconnect/Device.java +++ b/src/org/kde/kdeconnect/Device.java @@ -559,7 +559,8 @@ public class Device implements BaseLink.PackageReceiver { } else if (isPaired()) { - ArrayList targetPlugins = pluginsByIncomingInterface.get(np.getType()); + //If capabilities are not supported, iterate all plugins + Collection targetPlugins = (protocolVersion > 6)? pluginsByIncomingInterface.get(np.getType()) : plugins.keySet(); if (targetPlugins != null && !targetPlugins.isEmpty()) { for (String pluginKey : targetPlugins) { Plugin plugin = plugins.get(pluginKey); @@ -583,7 +584,8 @@ public class Device implements BaseLink.PackageReceiver { unpair(); - ArrayList targetPlugins = pluginsByIncomingInterface.get(np.getType()); + //If capabilities are not supported, iterate all plugins + Collection targetPlugins = (protocolVersion > 6)? pluginsByIncomingInterface.get(np.getType()) : plugins.keySet(); if (targetPlugins != null && !targetPlugins.isEmpty()) { for (String pluginKey : targetPlugins) { Plugin plugin = plugins.get(pluginKey);