mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 05:37:43 +00:00
If capabilities are not present, iterate all plugins
This commit is contained in:
parent
7759152eeb
commit
541cd97c71
@ -559,7 +559,8 @@ public class Device implements BaseLink.PackageReceiver {
|
|||||||
|
|
||||||
} else if (isPaired()) {
|
} else if (isPaired()) {
|
||||||
|
|
||||||
ArrayList<String> targetPlugins = pluginsByIncomingInterface.get(np.getType());
|
//If capabilities are not supported, iterate all plugins
|
||||||
|
Collection<String> targetPlugins = (protocolVersion > 6)? pluginsByIncomingInterface.get(np.getType()) : plugins.keySet();
|
||||||
if (targetPlugins != null && !targetPlugins.isEmpty()) {
|
if (targetPlugins != null && !targetPlugins.isEmpty()) {
|
||||||
for (String pluginKey : targetPlugins) {
|
for (String pluginKey : targetPlugins) {
|
||||||
Plugin plugin = plugins.get(pluginKey);
|
Plugin plugin = plugins.get(pluginKey);
|
||||||
@ -583,7 +584,8 @@ public class Device implements BaseLink.PackageReceiver {
|
|||||||
|
|
||||||
unpair();
|
unpair();
|
||||||
|
|
||||||
ArrayList<String> targetPlugins = pluginsByIncomingInterface.get(np.getType());
|
//If capabilities are not supported, iterate all plugins
|
||||||
|
Collection<String> targetPlugins = (protocolVersion > 6)? pluginsByIncomingInterface.get(np.getType()) : plugins.keySet();
|
||||||
if (targetPlugins != null && !targetPlugins.isEmpty()) {
|
if (targetPlugins != null && !targetPlugins.isEmpty()) {
|
||||||
for (String pluginKey : targetPlugins) {
|
for (String pluginKey : targetPlugins) {
|
||||||
Plugin plugin = plugins.get(pluginKey);
|
Plugin plugin = plugins.get(pluginKey);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user