Merge branch 'dev' of https://github.com/MilosKozak/AndroidAPS into dev
This commit is contained in:
commit
5fa56b22c9
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue