diff --git a/omnipod-eros/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/eros/history/ErosHistory.kt b/omnipod-eros/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/eros/history/ErosHistory.kt index e95f9d6357..6d331b1e4d 100644 --- a/omnipod-eros/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/eros/history/ErosHistory.kt +++ b/omnipod-eros/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/eros/history/ErosHistory.kt @@ -23,7 +23,7 @@ class ErosHistory(private val dao: ErosHistoryRecordDao) { } fun create(historyRecord: ErosHistoryRecordEntity?): Long = - Single.just(dao.insert(historyRecord!!)) + Single.fromCallable { dao.insert(historyRecord!!) } .subscribeOn(Schedulers.io()) .blockingGet() }