From 901440f78a75e49dc9efd0c9b6036d61fa32d97c Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 6 Sep 2016 00:47:59 +0200 Subject: [PATCH] Don't return an empty list of supported plugins If we don't know it yet return them all. --- src/org/kde/kdeconnect/Device.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/kde/kdeconnect/Device.java b/src/org/kde/kdeconnect/Device.java index c30e646b..27ab80ea 100644 --- a/src/org/kde/kdeconnect/Device.java +++ b/src/org/kde/kdeconnect/Device.java @@ -146,6 +146,9 @@ public class Device implements BaseLink.PackageReceiver { Log.e("KDE/Device","Exception deserializing stored public key for device"); } + //Assume every plugin is supported until addLink is called and we can get the actual list + m_supportedPlugins = new Vector<>(PluginFactory.getAvailablePlugins()); + //Do not load plugins yet, the device is not present //reloadPluginsFromSettings(); }