mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
Fix not loading any plugins when pairing with MacOS
This commit is contained in:
parent
6728ca472c
commit
37246f8575
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user