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

Workaround for bug where plugins are not loaded for a device

This commit is contained in:
Albert Vaca
2014-09-23 16:40:34 +02:00
parent a8664d01ec
commit 624cee5d87
2 changed files with 6 additions and 0 deletions

View File

@@ -627,6 +627,9 @@ public class Device implements BaseLink.PackageReceiver {
return enabled;
}
public boolean hasPluginsLoaded() {
return !plugins.isEmpty();
}
public void reloadPluginsFromSettings() {

View File

@@ -139,6 +139,9 @@ public class DeviceActivity extends ActionBarActivity {
setTitle(device.getName());
device.addPluginsChangedListener(pluginsChangedListener);
pluginsChangedListener.onPluginsChanged(device);
if (!device.hasPluginsLoaded()) {
device.reloadPluginsFromSettings();
}
}
});