diff --git a/automotive/build.gradle b/automotive/build.gradle index d8cbcfcd..b4813443 100644 --- a/automotive/build.gradle +++ b/automotive/build.gradle @@ -10,8 +10,8 @@ android { defaultConfig { minSdkVersion 29 targetSdkVersion 33 - versionCode 231 - versionName "0.27.0.0025" + versionCode 232 + versionName "0.27.0.0026" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/automotive/src/play/java/com/ixam97/carStatsViewer/carApp/CarStatsViewerScreen.kt b/automotive/src/play/java/com/ixam97/carStatsViewer/carApp/CarStatsViewerScreen.kt index 3726b3ee..c4410df4 100644 --- a/automotive/src/play/java/com/ixam97/carStatsViewer/carApp/CarStatsViewerScreen.kt +++ b/automotive/src/play/java/com/ixam97/carStatsViewer/carApp/CarStatsViewerScreen.kt @@ -221,7 +221,7 @@ class CarStatsViewerScreen( // setItemSize(GridTemplate.ITEM_SIZE_LARGE) setSingleList(ItemList.Builder().apply { addItem(GridItem.Builder().apply { - setTitle("${((realTimeData?.power?:0f)/1_000_000)} kW") + setTitle("${(((realTimeData?.power?:0f)/1_000_000) * 10).toInt() / 10f } kW") setText("Power") setImage(gauge.draw(128, (realTimeData?.power?:0f)/1_000_000, min = -150f, max = 300f).asCarIcon()) setItemSize(GridTemplate.ITEM_SIZE_LARGE)