Fix app crash when downloading full charger list from data source

R.string.downloading_chargers_percent expects a Float argument, but an Int
was supplied.
This commit is contained in:
Robert Högberg
2026-05-31 23:05:23 +02:00
committed by Johan von Forstner
parent b57bb5d884
commit abb00f144b

View File

@@ -654,7 +654,7 @@ class MapFragment : Fragment(), OnMapReadyCallback, MenuProvider {
binding.progressBar2.isIndeterminate = res.progress == null
binding.progressBar2.progress = ((res.progress ?: 0f) * 100f).toInt().coerceIn(0, 100)
binding.search.hint = if (res.progress != null) {
getString(R.string.downloading_chargers_percent, (res.progress * 100f).toInt())
getString(R.string.downloading_chargers_percent, (res.progress * 100f))
} else {
getString(R.string.search)
}