mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-24 10:58:20 +00:00
Less verbose logging of unmatched capabilities
This commit is contained in:
parent
394e530545
commit
0897f25a6f
@ -53,6 +53,7 @@ import java.security.cert.Certificate;
|
|||||||
import java.security.spec.PKCS8EncodedKeySpec;
|
import java.security.spec.PKCS8EncodedKeySpec;
|
||||||
import java.security.spec.X509EncodedKeySpec;
|
import java.security.spec.X509EncodedKeySpec;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -795,7 +796,6 @@ public class Device implements BaseLink.PackageReceiver {
|
|||||||
HashSet<String> supportedIn = new HashSet<>(incomingInterfaces);
|
HashSet<String> supportedIn = new HashSet<>(incomingInterfaces);
|
||||||
supportedIn.retainAll(outgoingCapabilities);
|
supportedIn.retainAll(outgoingCapabilities);
|
||||||
if (supportedOut.isEmpty() && supportedIn.isEmpty()) {
|
if (supportedOut.isEmpty() && supportedIn.isEmpty()) {
|
||||||
Log.w("ReloadPlugins", "not loading " + pluginKey + "because of unmatched capabilities");
|
|
||||||
newUnsupportedPlugins.add(pluginKey);
|
newUnsupportedPlugins.add(pluginKey);
|
||||||
if (pluginEnabled) {
|
if (pluginEnabled) {
|
||||||
//We still want to announce this capability, to prevent a deadlock
|
//We still want to announce this capability, to prevent a deadlock
|
||||||
@ -847,6 +847,8 @@ public class Device implements BaseLink.PackageReceiver {
|
|||||||
supportedOutgoingInterfaces = newSupportedOutgoingInterfaces;
|
supportedOutgoingInterfaces = newSupportedOutgoingInterfaces;
|
||||||
unsupportedPlugins = newUnsupportedPlugins;
|
unsupportedPlugins = newUnsupportedPlugins;
|
||||||
|
|
||||||
|
Log.i("ReloadPlugins", "not loading " + Arrays.toString(unsupportedPlugins.toArray()) + " because of unmatched capabilities");
|
||||||
|
|
||||||
onPluginsChanged();
|
onPluginsChanged();
|
||||||
|
|
||||||
//Only send capabilities to devices using protocol version 6 or later
|
//Only send capabilities to devices using protocol version 6 or later
|
||||||
|
Loading…
x
Reference in New Issue
Block a user