weight: add local unit to dialog

This commit is contained in:
2026-10-12 22:20:15 +02:00
committed by penguin86
parent 6fe0135bef
commit ac6b6c7a25
2 changed files with 4 additions and 0 deletions
@@ -313,6 +313,9 @@ class MainActivity : AppCompatActivity() {
val weightET = dialogView.findViewById<EditText>(R.id.dialog_number_edittext)
weightET.setText(event.quantity.toString())
val unitTV = dialogView.findViewById<TextView>(R.id.dialog_number_unit)
unitTV.text = NumericUtils(this).measurement_unit_weight_base
val dateTV = dialogView.findViewById<TextView>(R.id.dialog_date_picker)
val pickedTime = dateTimePicker(event.time, dateTV)