This commit is contained in:
Milos Kozak 2018-04-01 11:10:24 +02:00
commit 5fa56b22c9
2 changed files with 1 additions and 7 deletions

View file

@ -31,8 +31,6 @@ import info.nightscout.utils.SP;
public class WearPlugin extends PluginBase {
private static boolean fragmentEnabled = false;
private boolean fragmentVisible = false;
private static WatchUpdaterService watchUS;
private final Context ctx;
@ -196,10 +194,6 @@ public class WearPlugin extends PluginBase {
ctx.startService(intent);
}
public static boolean isEnabled() {
return fragmentEnabled;
}
public static void registerWatchUpdaterService(WatchUpdaterService wus) {
watchUS = wus;
}

View file

@ -108,7 +108,7 @@ public class WatchUpdaterService extends WearableListenerService implements
}
public void setSettings() {
wear_integration = WearPlugin.isEnabled();
wear_integration = WearPlugin.getPlugin().isEnabled(PluginType.GENERAL);
if (wear_integration) {
googleApiConnect();
}