mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Fix not loading any plugins when pairing with MacOS
This commit is contained in:
@@ -360,7 +360,11 @@ public class Device implements BaseLink.PacketReceiver {
|
|||||||
|
|
||||||
if (deviceInfo.outgoingCapabilities != newDeviceInfo.outgoingCapabilities ||
|
if (deviceInfo.outgoingCapabilities != newDeviceInfo.outgoingCapabilities ||
|
||||||
deviceInfo.incomingCapabilities != newDeviceInfo.incomingCapabilities) {
|
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;
|
hasChanges = true;
|
||||||
Log.i("updateDeviceInfo", "Updating supported plugins according to new capabilities");
|
Log.i("updateDeviceInfo", "Updating supported plugins according to new capabilities");
|
||||||
supportedPlugins = new Vector<>(PluginFactory.pluginsForCapabilities(newDeviceInfo.incomingCapabilities, newDeviceInfo.outgoingCapabilities));
|
supportedPlugins = new Vector<>(PluginFactory.pluginsForCapabilities(newDeviceInfo.incomingCapabilities, newDeviceInfo.outgoingCapabilities));
|
||||||
|
Reference in New Issue
Block a user