Skip to content

Commit 3d9987f

Browse files
committed
Hotfix for settings menu crash on Polestar 4
1 parent 2b759d7 commit 3d9987f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

automotive/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ android {
2121
defaultConfig {
2222
minSdkVersion 29
2323
targetSdkVersion 35
24-
versionCode 285
25-
versionName "0.28.0.0019"
24+
versionCode 286
25+
versionName "0.28.0.0020"
2626

2727
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2828
}

automotive/src/main/java/com/ixam97/carStatsViewer/compose/components/SideTabLayout.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fun SideTabLayout(
7373
val width = with(LocalDensity.current){ size.width.toDp() }
7474
Log.d("WINDOW SIZE", "$width dp")
7575

76-
if (width < 1300.dp) {
76+
if (width < 1400.dp) {
7777
// Nested navigation for slim displays
7878
Column(
7979
modifier = Modifier.fillMaxSize()
@@ -123,8 +123,10 @@ fun SideTabLayout(
123123
Row {
124124
Column(
125125
modifier = Modifier
126-
.width(IntrinsicSize.Max)
127-
.defaultMinSize(minWidth = 500.dp)
126+
.width(500.dp)
127+
// TODO: This crashes the app when opening settings menu on wide displays. Will have to find a solution for this. Hotfix for now...
128+
// .width(IntrinsicSize.Max)
129+
// .defaultMinSize(minWidth = 500.dp)
128130
.fillMaxHeight()
129131
.background(tabsColumnBackground)
130132
// .padding(top = 10.dp),

0 commit comments

Comments
 (0)