Blue AAPSClient2 icon for notifications

This commit is contained in:
Milos Kozak 2023-08-14 16:47:18 +02:00
parent 05b92adb32
commit b2d9f1c39b
3 changed files with 7 additions and 2 deletions

View file

@ -18,6 +18,8 @@ class ConfigImpl @Inject constructor(
override val SUPPORTED_NS_VERSION = 150000 // 15.0.0
override val APS = BuildConfig.FLAVOR == "full"
override val NSCLIENT = BuildConfig.FLAVOR == "aapsclient" || BuildConfig.FLAVOR == "aapsclient2"
override val NSCLIENT1 = BuildConfig.FLAVOR == "aapsclient"
override val NSCLIENT2 = BuildConfig.FLAVOR == "aapsclient2"
override val PUMPCONTROL = BuildConfig.FLAVOR == "pumpcontrol"
override val PUMPDRIVERS = BuildConfig.FLAVOR == "full" || BuildConfig.FLAVOR == "pumpcontrol"
override val FLAVOR = BuildConfig.FLAVOR

View file

@ -4,7 +4,9 @@ package info.nightscout.interfaces
interface Config {
val SUPPORTED_NS_VERSION: Int
val APS: Boolean
val NSCLIENT: Boolean
val NSCLIENT: Boolean // aapsclient || aapsclient2
val NSCLIENT1: Boolean // aapsclient
val NSCLIENT2: Boolean // aapsclient2
val PUMPCONTROL: Boolean
val PUMPDRIVERS: Boolean
val FLAVOR: String

View file

@ -11,7 +11,8 @@ class IconsProviderImplementation @Inject constructor(private val config: Config
override fun getIcon(): Int =
when {
config.NSCLIENT -> info.nightscout.core.ui.R.mipmap.ic_yellowowl
config.NSCLIENT2 -> info.nightscout.core.ui.R.mipmap.ic_blueowl
config.NSCLIENT1 -> info.nightscout.core.ui.R.mipmap.ic_yellowowl
config.PUMPCONTROL -> info.nightscout.core.ui.R.mipmap.ic_pumpcontrol
else -> info.nightscout.core.ui.R.mipmap.ic_launcher
}