fix warnings
This commit is contained in:
parent
46a5680903
commit
15a9cef6fd
|
@ -23,8 +23,8 @@ class FillMenuActivity : MenuListActivity() {
|
|||
add(MenuItem(R.drawable.ic_canula, getString(R.string.action_free_amount)))
|
||||
}
|
||||
|
||||
override fun doAction(action: String) {
|
||||
when (action) {
|
||||
override fun doAction(position: String) {
|
||||
when (position) {
|
||||
getString(R.string.action_preset_1) -> rxBus.send(EventWearToMobile(EventData.ActionFillPresetPreCheck(1)))
|
||||
getString(R.string.action_preset_2) -> rxBus.send(EventWearToMobile(EventData.ActionFillPresetPreCheck(2)))
|
||||
getString(R.string.action_preset_3) -> rxBus.send(EventWearToMobile(EventData.ActionFillPresetPreCheck(3)))
|
||||
|
|
|
@ -40,8 +40,8 @@ class MainMenuActivity : MenuListActivity() {
|
|||
}
|
||||
}
|
||||
|
||||
override fun doAction(action: String) {
|
||||
when (action) {
|
||||
override fun doAction(position: String) {
|
||||
when (position) {
|
||||
getString(R.string.menu_settings) -> startActivity(Intent(this, WatchfaceConfigurationActivity::class.java).apply { addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) })
|
||||
getString(R.string.menu_resync) -> rxBus.send(EventWearToMobile(ActionResendData("Re-Sync")))
|
||||
getString(R.string.status_profile_switch) -> rxBus.send(EventWearToMobile(EventData.ActionProfileSwitchSendInitialData(System.currentTimeMillis())))
|
||||
|
|
|
@ -22,8 +22,8 @@ class StatusMenuActivity : MenuListActivity() {
|
|||
add(MenuItem(R.drawable.ic_tdd, getString(R.string.status_tdd)))
|
||||
}
|
||||
|
||||
override fun doAction(action: String) {
|
||||
when (action) {
|
||||
override fun doAction(position: String) {
|
||||
when (position) {
|
||||
getString(R.string.status_pump) -> rxBus.send(EventWearToMobile(ActionPumpStatus(System.currentTimeMillis())))
|
||||
getString(R.string.status_loop) -> rxBus.send(EventWearToMobile(ActionLoopStatus(System.currentTimeMillis())))
|
||||
getString(R.string.status_tdd) -> rxBus.send(EventWearToMobile(ActionTddStatus(System.currentTimeMillis())))
|
||||
|
|
Loading…
Reference in a new issue