diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/WearPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/WearPlugin.java index 59adb1ecc0..a9f30214e6 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/WearPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/WearPlugin.java @@ -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; } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java index 7acfc27a93..de42596b34 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java @@ -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(); }