Xdrip: fix interface

This commit is contained in:
Milos Kozak 2023-02-04 18:50:57 +01:00
parent 6c536d7eee
commit 66c85597f7

View file

@ -29,6 +29,7 @@ import info.nightscout.interfaces.profile.Profile
import info.nightscout.interfaces.profile.ProfileFunction import info.nightscout.interfaces.profile.ProfileFunction
import info.nightscout.interfaces.receivers.Intents import info.nightscout.interfaces.receivers.Intents
import info.nightscout.interfaces.sync.DataSyncSelector import info.nightscout.interfaces.sync.DataSyncSelector
import info.nightscout.interfaces.sync.Sync
import info.nightscout.interfaces.ui.UiInteraction import info.nightscout.interfaces.ui.UiInteraction
import info.nightscout.interfaces.utils.DecimalFormatter import info.nightscout.interfaces.utils.DecimalFormatter
import info.nightscout.interfaces.utils.HtmlHelper import info.nightscout.interfaces.utils.HtmlHelper
@ -76,7 +77,7 @@ class XdripPlugin @Inject constructor(
private val dataSyncSelector: XdripDataSyncSelectorImplementation, private val dataSyncSelector: XdripDataSyncSelectorImplementation,
private val dateUtil: DateUtil, private val dateUtil: DateUtil,
aapsLogger: AAPSLogger aapsLogger: AAPSLogger
) : XDripBroadcast, PluginBase( ) : XDripBroadcast, Sync, PluginBase(
PluginDescription() PluginDescription()
.mainType(PluginType.SYNC) .mainType(PluginType.SYNC)
.fragmentClass(XdripFragment::class.java.name) .fragmentClass(XdripFragment::class.java.name)
@ -96,6 +97,11 @@ class XdripPlugin @Inject constructor(
private val listLog: MutableList<EventXdripNewLog> = ArrayList() private val listLog: MutableList<EventXdripNewLog> = ArrayList()
private var lastLoopStatus = false private var lastLoopStatus = false
// Not used Sync interface members
override val hasWritePermission: Boolean = true
override val connected: Boolean = true
override val status: String = ""
override fun onStart() { override fun onStart() {
super.onStart() super.onStart()
disposable += rxBus disposable += rxBus