Android Auto: reduce length of slider to avoid cutoff on small screens

This commit is contained in:
johan12345
2022-08-05 18:12:48 +02:00
parent db11170967
commit d39d51d32c

View File

@@ -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()