Blue AAPSClient2 icon for notifications
This commit is contained in:
parent
05b92adb32
commit
b2d9f1c39b
3 changed files with 7 additions and 2 deletions
|
@ -18,6 +18,8 @@ class ConfigImpl @Inject constructor(
|
||||||
override val SUPPORTED_NS_VERSION = 150000 // 15.0.0
|
override val SUPPORTED_NS_VERSION = 150000 // 15.0.0
|
||||||
override val APS = BuildConfig.FLAVOR == "full"
|
override val APS = BuildConfig.FLAVOR == "full"
|
||||||
override val NSCLIENT = BuildConfig.FLAVOR == "aapsclient" || BuildConfig.FLAVOR == "aapsclient2"
|
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 PUMPCONTROL = BuildConfig.FLAVOR == "pumpcontrol"
|
||||||
override val PUMPDRIVERS = BuildConfig.FLAVOR == "full" || BuildConfig.FLAVOR == "pumpcontrol"
|
override val PUMPDRIVERS = BuildConfig.FLAVOR == "full" || BuildConfig.FLAVOR == "pumpcontrol"
|
||||||
override val FLAVOR = BuildConfig.FLAVOR
|
override val FLAVOR = BuildConfig.FLAVOR
|
||||||
|
|
|
@ -4,7 +4,9 @@ package info.nightscout.interfaces
|
||||||
interface Config {
|
interface Config {
|
||||||
val SUPPORTED_NS_VERSION: Int
|
val SUPPORTED_NS_VERSION: Int
|
||||||
val APS: Boolean
|
val APS: Boolean
|
||||||
val NSCLIENT: Boolean
|
val NSCLIENT: Boolean // aapsclient || aapsclient2
|
||||||
|
val NSCLIENT1: Boolean // aapsclient
|
||||||
|
val NSCLIENT2: Boolean // aapsclient2
|
||||||
val PUMPCONTROL: Boolean
|
val PUMPCONTROL: Boolean
|
||||||
val PUMPDRIVERS: Boolean
|
val PUMPDRIVERS: Boolean
|
||||||
val FLAVOR: String
|
val FLAVOR: String
|
||||||
|
|
|
@ -11,7 +11,8 @@ class IconsProviderImplementation @Inject constructor(private val config: Config
|
||||||
|
|
||||||
override fun getIcon(): Int =
|
override fun getIcon(): Int =
|
||||||
when {
|
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
|
config.PUMPCONTROL -> info.nightscout.core.ui.R.mipmap.ic_pumpcontrol
|
||||||
else -> info.nightscout.core.ui.R.mipmap.ic_launcher
|
else -> info.nightscout.core.ui.R.mipmap.ic_launcher
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue