From 6eafda561c4a69e8a041b756e19df7832e62d53d Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 2 Mar 2021 23:22:15 +0100 Subject: [PATCH] exclude dots from profile name --- .../androidaps/activities/ProfileHelperActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/activities/ProfileHelperActivity.kt b/app/src/main/java/info/nightscout/androidaps/activities/ProfileHelperActivity.kt index 542fdf95ac..34978739b6 100644 --- a/app/src/main/java/info/nightscout/androidaps/activities/ProfileHelperActivity.kt +++ b/app/src/main/java/info/nightscout/androidaps/activities/ProfileHelperActivity.kt @@ -140,7 +140,10 @@ class ProfileHelperActivity : NoSplashAppCompatActivity() { else defaultProfileDPV.profile(age, tdd, pct / 100.0, profileFunction.getUnits()) profile?.let { OKDialog.showConfirmation(this, resourceHelper.gs(R.string.careportal_profileswitch), resourceHelper.gs(R.string.copytolocalprofile), Runnable { - localProfilePlugin.addProfile(localProfilePlugin.copyFrom(it, "DefaultProfile" + dateUtil.dateAndTimeAndSecondsString(dateUtil._now()))) + localProfilePlugin.addProfile(localProfilePlugin.copyFrom(it, "DefaultProfile " + + dateUtil.dateAndTimeAndSecondsString(dateUtil._now()) + .replace(".", "/") + )) rxBus.send(EventLocalProfileChanged()) }) }