mirror of
https://github.com/ev-map/EVMap.git
synced 2026-04-29 10:34:41 -04:00
Android Auto: reduce length of slider to avoid cutoff on small screens
This commit is contained in:
@@ -385,7 +385,7 @@ class SliderFilterScreen(
|
||||
private fun generateSlider(): CharSequence {
|
||||
val bar = "━"
|
||||
val dot = "⬤"
|
||||
val length = 35
|
||||
val length = 30
|
||||
|
||||
val position =
|
||||
((filter.inverseMapping(value.value) - filter.min) / (filter.max - filter.min).toDouble() * length).roundToInt()
|
||||
|
||||
Reference in New Issue
Block a user