mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 21:27:40 +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()) {
|
||||
|
||||
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()) {
|
||||
for (String pluginKey : targetPlugins) {
|
||||
Plugin plugin = plugins.get(pluginKey);
|
||||
@ -583,7 +584,8 @@ public class Device implements BaseLink.PackageReceiver {
|
||||
|
||||
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()) {
|
||||
for (String pluginKey : targetPlugins) {
|
||||
Plugin plugin = plugins.get(pluginKey);
|
||||
|
Loading…
x
Reference in New Issue
Block a user