ktlintFormat

This commit is contained in:
Andrei Vereha 2021-04-21 23:29:16 +02:00
parent d3c73f9665
commit b64d530ae9
6 changed files with 3 additions and 7 deletions

View file

@ -33,7 +33,6 @@ import io.reactivex.Observable
import io.reactivex.Single import io.reactivex.Single
import io.reactivex.rxkotlin.blockingSubscribeBy import io.reactivex.rxkotlin.blockingSubscribeBy
import io.reactivex.rxkotlin.subscribeBy import io.reactivex.rxkotlin.subscribeBy
import io.reactivex.rxkotlin.toCompletable
import org.json.JSONObject import org.json.JSONObject
import java.util.* import java.util.*
import javax.inject.Inject import javax.inject.Inject

View file

@ -662,7 +662,6 @@ class OmnipodDashManagerImpl @Inject constructor(
// TODO: is it bad if we increment this sequence number when we failed to send the command? // TODO: is it bad if we increment this sequence number when we failed to send the command?
} }
is PodEvent.ResponseReceived -> { is PodEvent.ResponseReceived -> {
podStateManager.increaseMessageSequenceNumber() podStateManager.increaseMessageSequenceNumber()
handleResponse(event.response) handleResponse(event.response)

View file

@ -86,7 +86,7 @@ class Connection(
val msgIO = MessageIO(aapsLogger, cmdBleIO, dataBleIO) val msgIO = MessageIO(aapsLogger, cmdBleIO, dataBleIO)
fun connect() { fun connect() {
if (session!=null) { if (session != null) {
disconnect() disconnect()
} }
aapsLogger.debug("Connecting") aapsLogger.debug("Connecting")

View file

@ -2,7 +2,6 @@ package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.state
import android.os.SystemClock import android.os.SystemClock
import com.google.gson.Gson import com.google.gson.Gson
import info.nightscout.androidaps.data.PumpEnactResult
import info.nightscout.androidaps.logging.AAPSLogger import info.nightscout.androidaps.logging.AAPSLogger
import info.nightscout.androidaps.logging.LTag import info.nightscout.androidaps.logging.LTag
import info.nightscout.androidaps.plugins.bus.RxBusWrapper import info.nightscout.androidaps.plugins.bus.RxBusWrapper
@ -20,7 +19,6 @@ import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.response.
import info.nightscout.androidaps.utils.sharedPreferences.SP import info.nightscout.androidaps.utils.sharedPreferences.SP
import io.reactivex.Completable import io.reactivex.Completable
import io.reactivex.Maybe import io.reactivex.Maybe
import io.reactivex.Single
import java.io.Serializable import java.io.Serializable
import java.util.* import java.util.*
import javax.inject.Inject import javax.inject.Inject

View file

@ -39,7 +39,7 @@ class DashHistory @Inject constructor(
fun createRecord( fun createRecord(
commandType: OmnipodCommandType, commandType: OmnipodCommandType,
date: Long = System.currentTimeMillis(), date: Long = System.currentTimeMillis(),
initialResult: InitialResult = InitialResult.CREATED, initialResult: InitialResult = InitialResult.NOT_SENT,
tempBasalRecord: TempBasalRecord? = null, tempBasalRecord: TempBasalRecord? = null,
bolusRecord: BolusRecord? = null, bolusRecord: BolusRecord? = null,
resolveResult: ResolvedResult? = null, resolveResult: ResolvedResult? = null,

View file

@ -1,7 +1,7 @@
package info.nightscout.androidaps.plugins.pump.omnipod.dash.history.data package info.nightscout.androidaps.plugins.pump.omnipod.dash.history.data
enum class InitialResult { enum class InitialResult {
CREATED, FAILURE_SENDING, UNCONFIRMED, SENT NOT_SENT, FAILURE_SENDING, UNCONFIRMED, SENT
} }
enum class ResolvedResult { enum class ResolvedResult {