2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00

Make it possible to trigger a plugin page reload

Reviewed by Albert Vaca
This commit is contained in:
Aleix Pol
2015-09-12 12:24:11 +02:00
parent 56d6cffb71
commit 9b03bdf2c0

View File

@@ -845,9 +845,7 @@ public class Device implements BaseLink.PackageReceiver {
supportedIncomingInterfaces = newSupportedIncomingInterfaces;
unsupportedPlugins = newUnsupportedPlugins;
for (PluginsChangedListener listener : pluginsChangedListeners) {
listener.onPluginsChanged(Device.this);
}
onPluginsChanged();
if (capabilitiesChanged && isReachable() && isPaired()) {
NetworkPackage np = new NetworkPackage(NetworkPackage.PACKAGE_TYPE_CAPABILITIES);
@@ -858,6 +856,12 @@ public class Device implements BaseLink.PackageReceiver {
}
public void onPluginsChanged() {
for (PluginsChangedListener listener : pluginsChangedListeners) {
listener.onPluginsChanged(Device.this);
}
}
public HashMap<String,Plugin> getLoadedPlugins() {
return plugins;
}