mirror of
https://github.com/ev-map/EVMap.git
synced 2026-06-10 23:38:25 -04:00
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:
committed by
Johan von Forstner
parent
b57bb5d884
commit
abb00f144b
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user