21 lines
736 B
Kotlin
21 lines
736 B
Kotlin
package info.nightscout.androidaps.skins
|
|
|
|
import info.nightscout.androidaps.Config
|
|
import info.nightscout.androidaps.R
|
|
import javax.inject.Inject
|
|
import javax.inject.Singleton
|
|
|
|
@Singleton
|
|
class SkinButtonsOn @Inject constructor(private val config: Config) : SkinInterface {
|
|
|
|
override val description: Int get() = R.string.buttonson_description
|
|
override val mainGraphHeight: Int get() = 200
|
|
override val secondaryGraphHeight: Int get() = 100
|
|
|
|
override fun overviewLayout(isLandscape: Boolean, isTablet: Boolean, isSmallHeight: Boolean): Int =
|
|
when {
|
|
config.NSCLIENT -> R.layout.overview_fragment_nsclient
|
|
else -> R.layout.overview_fragment
|
|
}
|
|
|
|
} |