diff --git a/wear/src/main/java/info/nightscout/androidaps/complications/ComplicationAction.java b/wear/src/main/java/info/nightscout/androidaps/complications/ComplicationAction.java deleted file mode 100644 index 9ca1e9c456..0000000000 --- a/wear/src/main/java/info/nightscout/androidaps/complications/ComplicationAction.java +++ /dev/null @@ -1,12 +0,0 @@ -package info.nightscout.androidaps.complications; - -public enum ComplicationAction { - NONE, - MENU, - WIZARD, - BOLUS, - ECARB, - STATUS, - WARNING_SYNC, - WARNING_OLD -} \ No newline at end of file diff --git a/wear/src/main/java/info/nightscout/androidaps/complications/ComplicationAction.kt b/wear/src/main/java/info/nightscout/androidaps/complications/ComplicationAction.kt new file mode 100644 index 0000000000..5ad6c80ee7 --- /dev/null +++ b/wear/src/main/java/info/nightscout/androidaps/complications/ComplicationAction.kt @@ -0,0 +1,5 @@ +package info.nightscout.androidaps.complications + +enum class ComplicationAction { + NONE, MENU, WIZARD, BOLUS, E_CARB, STATUS, WARNING_SYNC, WARNING_OLD +} \ No newline at end of file diff --git a/wear/src/main/java/info/nightscout/androidaps/complications/ComplicationTapBroadcastReceiver.kt b/wear/src/main/java/info/nightscout/androidaps/complications/ComplicationTapBroadcastReceiver.kt index 0944960b3b..f8452ec35d 100644 --- a/wear/src/main/java/info/nightscout/androidaps/complications/ComplicationTapBroadcastReceiver.kt +++ b/wear/src/main/java/info/nightscout/androidaps/complications/ComplicationTapBroadcastReceiver.kt @@ -60,7 +60,7 @@ class ComplicationTapBroadcastReceiver : DaggerBroadcastReceiver() { return ComplicationAction.WIZARD -> intentOpen = Intent(context, WizardActivity::class.java) ComplicationAction.BOLUS -> intentOpen = Intent(context, TreatmentActivity::class.java) - ComplicationAction.ECARB -> intentOpen = Intent(context, ECarbActivity::class.java) + ComplicationAction.E_CARB -> intentOpen = Intent(context, ECarbActivity::class.java) ComplicationAction.STATUS -> intentOpen = Intent(context, StatusMenuActivity::class.java) ComplicationAction.WARNING_OLD, ComplicationAction.WARNING_SYNC -> { @@ -92,7 +92,7 @@ class ComplicationTapBroadcastReceiver : DaggerBroadcastReceiver() { "menu" -> ComplicationAction.MENU "wizard" -> ComplicationAction.WIZARD "bolus" -> ComplicationAction.BOLUS - "ecarb" -> ComplicationAction.ECARB + "ecarb" -> ComplicationAction.E_CARB "status" -> ComplicationAction.STATUS "none" -> ComplicationAction.NONE "default" -> originalAction