Skip to content

Commit d936bc2

Browse files
authored
[Jetcaster]: Fix ambiguous WSC import. (#1326)
2 parents 79403f8 + 5379e1d commit d936bc2

File tree

1 file changed

+3
-4
lines changed
  • Jetcaster/app/src/main/java/com/example/jetcaster/ui/home

1 file changed

+3
-4
lines changed

Jetcaster/app/src/main/java/com/example/jetcaster/ui/home/Home.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ import androidx.compose.ui.unit.dp
106106
import androidx.hilt.navigation.compose.hiltViewModel
107107
import androidx.lifecycle.compose.collectAsStateWithLifecycle
108108
import androidx.window.core.layout.WindowHeightSizeClass
109-
import androidx.window.core.layout.WindowWidthSizeClass
110109
import coil.compose.AsyncImage
111110
import com.example.jetcaster.R
112111
import com.example.jetcaster.core.data.model.CategoryInfo
@@ -186,11 +185,11 @@ fun calculateScaffoldDirective(
186185
verticalSpacerSize = 0.dp
187186
} else {
188187
when (windowAdaptiveInfo.windowSizeClass.windowWidthSizeClass) {
189-
WindowWidthSizeClass.COMPACT -> {
188+
androidx.window.core.layout.WindowWidthSizeClass.COMPACT -> {
190189
maxHorizontalPartitions = 1
191190
verticalSpacerSize = 0.dp
192191
}
193-
WindowWidthSizeClass.MEDIUM -> {
192+
androidx.window.core.layout.WindowWidthSizeClass.MEDIUM -> {
194193
maxHorizontalPartitions = 1
195194
verticalSpacerSize = 0.dp
196195
}
@@ -237,7 +236,7 @@ private fun getExcludedVerticalBounds(posture: Posture, hingePolicy: HingePolicy
237236
}
238237

239238
private fun androidx.window.core.layout.WindowSizeClass.isCompact(): Boolean =
240-
windowWidthSizeClass == WindowWidthSizeClass.COMPACT ||
239+
windowWidthSizeClass == androidx.window.core.layout.WindowWidthSizeClass.COMPACT ||
241240
windowHeightSizeClass == WindowHeightSizeClass.COMPACT
242241

243242
@OptIn(ExperimentalMaterial3AdaptiveApi::class)

0 commit comments

Comments
 (0)