From a398d95bb4a232140e6dd95e39f13cb0aaf5dba8 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Mon, 12 Mar 2018 23:03:14 +0100 Subject: [PATCH] Add info to About dialog when engineering mode is enabled. --- app/src/main/java/info/nightscout/androidaps/MainActivity.java | 2 ++ app/src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/MainActivity.java b/app/src/main/java/info/nightscout/androidaps/MainActivity.java index 91446ada32..ef4908a9f1 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/MainActivity.java @@ -396,6 +396,8 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe builder.setIcon(R.mipmap.blueowl); String message = "Build: " + BuildConfig.BUILDVERSION + "\n"; message += MainApp.sResources.getString(R.string.configbuilder_nightscoutversion_label) + " " + ConfigBuilderPlugin.nightscoutVersionName; + if (MainApp.engineeringMode) + message += MainApp.gs(R.string.engineering_mode_enabled); builder.setMessage(message); builder.setPositiveButton(MainApp.sResources.getString(R.string.ok), null); AlertDialog alertDialog = builder.create(); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e9bb24c95f..fd190bf531 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -970,5 +970,6 @@ Allow automated crash reporting and feature usage data to be sent to the developers via the fabric.io service. Please update your G5 app to supported version Running dev version. Closed loop is disabled + Engineering mode enabled