Unbreak WearPlugin.

This commit is contained in:
Johannes Mockenhaupt 2018-04-01 02:09:40 +02:00
parent 8d35a89870
commit 280ed14c6b
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
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();
}