uel log, put name in value with unit

This commit is contained in:
Philoul 2021-03-03 08:53:48 +01:00
parent e0610a8341
commit a556df86c5

View file

@ -62,7 +62,7 @@ class NSProfileFragment : DaggerFragment() {
activity?.let { activity ->
OKDialog.showConfirmation(activity, resourceHelper.gs(R.string.nsprofile),
resourceHelper.gs(R.string.activate_profile) + ": " + name + " ?", Runnable {
uel.log(Action.PROFILE_SWITCH, name, ValueWithUnit(100.toInt(), Units.Percent))
uel.log(Action.PROFILE_SWITCH, ValueWithUnit(name,Units.None), ValueWithUnit(100.toInt(), Units.Percent))
treatmentsPlugin.doProfileSwitch(store, name, 0, 100, 0, DateUtil.now())
})
}