DanaI: fix saving user options

This commit is contained in:
Milos Kozak 2023-04-10 20:47:19 +02:00
parent 04675332bf
commit 173cc754d5

View file

@ -42,7 +42,7 @@ class DanaUserOptionsActivity : DaggerAppCompatActivity() {
private val disposable = CompositeDisposable() private val disposable = CompositeDisposable()
// This is for Dana pumps only // This is for Dana pumps only
private fun isRS() = activePlugin.activePump.pumpDescription.pumpType == PumpType.DANA_RS private fun isRS() = activePlugin.activePump.pumpDescription.pumpType == PumpType.DANA_RS || activePlugin.activePump.pumpDescription.pumpType == PumpType.DANA_I
private fun isDanaR() = activePlugin.activePump.pumpDescription.pumpType == PumpType.DANA_R private fun isDanaR() = activePlugin.activePump.pumpDescription.pumpType == PumpType.DANA_R
private fun isDanaRv2() = activePlugin.activePump.pumpDescription.pumpType == PumpType.DANA_RV2 private fun isDanaRv2() = activePlugin.activePump.pumpDescription.pumpType == PumpType.DANA_RV2