Merge pull request #819 from jotomo/unbreak-wear-plugin

Unbreak wear plugin
This commit is contained in:
Milos Kozak 2018-04-01 10:52:52 +02:00 committed by GitHub
commit 3fe7d9a43e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -107,7 +107,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();
}