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

Fixed bug causing plugins to load for unreachable devices

This commit is contained in:
Albert Vaca
2014-06-09 12:55:47 +02:00
parent 1dbc93ec73
commit 77f9a30bd3

View File

@@ -611,7 +611,7 @@ public class Device implements BaseLink.PackageReceiver {
public void setPluginEnabled(String pluginName, boolean value) {
settings.edit().putBoolean(pluginName,value).commit();
if (value) addPlugin(pluginName);
if (value && isPaired() && isReachable()) addPlugin(pluginName);
else removePlugin(pluginName);
}