From 252063d822999bbf6fc55b507f3cd5f296897685 Mon Sep 17 00:00:00 2001 From: Dominik Dzienia Date: Mon, 28 Sep 2020 21:41:41 +0200 Subject: [PATCH] Make enginering mode enabled only when turned on --- .../info/nightscout/androidaps/utils/buildHelper/BuildHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/utils/buildHelper/BuildHelper.kt b/app/src/main/java/info/nightscout/androidaps/utils/buildHelper/BuildHelper.kt index a08f671512..019e239fc9 100644 --- a/app/src/main/java/info/nightscout/androidaps/utils/buildHelper/BuildHelper.kt +++ b/app/src/main/java/info/nightscout/androidaps/utils/buildHelper/BuildHelper.kt @@ -25,7 +25,7 @@ class BuildHelper @Inject constructor(private val config: Config) { if (!config.APS) true else engineeringMode || !devBranch fun isEngineeringMode(): Boolean = - if (!config.APS) true else engineeringMode || !devBranch + engineeringMode fun isDev(): Boolean = devBranch } \ No newline at end of file