Fix skip button in locales that use comma instead of dot

Fixes #1721
hotfix/2.1.3
Alinson S. Xavier 2 years ago
parent 69b5ed3a6d
commit 727e88b7b1
Signed by: isoron
GPG Key ID: 0DA8E4B9E1109DCA

@ -35,8 +35,8 @@ android {
compileSdk = 31
defaultConfig {
versionCode = 20102
versionName = "2.1.2"
versionCode = 20103
versionName = "2.1.3"
minSdk = 23
targetSdk = 31
applicationId = "org.isoron.uhabits"

@ -65,7 +65,7 @@ class NumberDialog : AppCompatDialogFragment() {
save()
}
view.skipBtnNumber.setOnClickListener {
view.value.setText((Entry.SKIP.toDouble() / 1000).toString())
view.value.setText(DecimalFormat("#.###").format((Entry.SKIP.toDouble() / 1000)))
save()
}
view.notes.setOnEditorActionListener { v, actionId, event ->

Loading…
Cancel
Save