2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

Fix not loading any plugins when pairing with MacOS

This commit is contained in:
Albert Vaca Cintora
2024-04-12 15:19:41 +02:00
parent 6728ca472c
commit 37246f8575

View File

@@ -360,7 +360,11 @@ public class Device implements BaseLink.PacketReceiver {
if (deviceInfo.outgoingCapabilities != newDeviceInfo.outgoingCapabilities ||
deviceInfo.incomingCapabilities != newDeviceInfo.incomingCapabilities) {
if (newDeviceInfo.outgoingCapabilities != null && newDeviceInfo.incomingCapabilities != null) {
if (newDeviceInfo.outgoingCapabilities != null
&& !newDeviceInfo.outgoingCapabilities.isEmpty()
&& newDeviceInfo.incomingCapabilities != null
&& !newDeviceInfo.incomingCapabilities.isEmpty()
) {
hasChanges = true;
Log.i("updateDeviceInfo", "Updating supported plugins according to new capabilities");
supportedPlugins = new Vector<>(PluginFactory.pluginsForCapabilities(newDeviceInfo.incomingCapabilities, newDeviceInfo.outgoingCapabilities));