ComplicationAction -> kt
This commit is contained in:
parent
f8bfbf29cf
commit
8e59519a8a
3 changed files with 7 additions and 14 deletions
|
@ -1,12 +0,0 @@
|
||||||
package info.nightscout.androidaps.complications;
|
|
||||||
|
|
||||||
public enum ComplicationAction {
|
|
||||||
NONE,
|
|
||||||
MENU,
|
|
||||||
WIZARD,
|
|
||||||
BOLUS,
|
|
||||||
ECARB,
|
|
||||||
STATUS,
|
|
||||||
WARNING_SYNC,
|
|
||||||
WARNING_OLD
|
|
||||||
}
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
package info.nightscout.androidaps.complications
|
||||||
|
|
||||||
|
enum class ComplicationAction {
|
||||||
|
NONE, MENU, WIZARD, BOLUS, E_CARB, STATUS, WARNING_SYNC, WARNING_OLD
|
||||||
|
}
|
|
@ -60,7 +60,7 @@ class ComplicationTapBroadcastReceiver : DaggerBroadcastReceiver() {
|
||||||
return
|
return
|
||||||
ComplicationAction.WIZARD -> intentOpen = Intent(context, WizardActivity::class.java)
|
ComplicationAction.WIZARD -> intentOpen = Intent(context, WizardActivity::class.java)
|
||||||
ComplicationAction.BOLUS -> intentOpen = Intent(context, TreatmentActivity::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.STATUS -> intentOpen = Intent(context, StatusMenuActivity::class.java)
|
||||||
|
|
||||||
ComplicationAction.WARNING_OLD, ComplicationAction.WARNING_SYNC -> {
|
ComplicationAction.WARNING_OLD, ComplicationAction.WARNING_SYNC -> {
|
||||||
|
@ -92,7 +92,7 @@ class ComplicationTapBroadcastReceiver : DaggerBroadcastReceiver() {
|
||||||
"menu" -> ComplicationAction.MENU
|
"menu" -> ComplicationAction.MENU
|
||||||
"wizard" -> ComplicationAction.WIZARD
|
"wizard" -> ComplicationAction.WIZARD
|
||||||
"bolus" -> ComplicationAction.BOLUS
|
"bolus" -> ComplicationAction.BOLUS
|
||||||
"ecarb" -> ComplicationAction.ECARB
|
"ecarb" -> ComplicationAction.E_CARB
|
||||||
"status" -> ComplicationAction.STATUS
|
"status" -> ComplicationAction.STATUS
|
||||||
"none" -> ComplicationAction.NONE
|
"none" -> ComplicationAction.NONE
|
||||||
"default" -> originalAction
|
"default" -> originalAction
|
||||||
|
|
Loading…
Reference in a new issue