@@ -106,7 +106,6 @@ import androidx.compose.ui.unit.dp
106
106
import androidx.hilt.navigation.compose.hiltViewModel
107
107
import androidx.lifecycle.compose.collectAsStateWithLifecycle
108
108
import androidx.window.core.layout.WindowHeightSizeClass
109
- import androidx.window.core.layout.WindowWidthSizeClass
110
109
import coil.compose.AsyncImage
111
110
import com.example.jetcaster.R
112
111
import com.example.jetcaster.core.data.model.CategoryInfo
@@ -186,11 +185,11 @@ fun calculateScaffoldDirective(
186
185
verticalSpacerSize = 0 .dp
187
186
} else {
188
187
when (windowAdaptiveInfo.windowSizeClass.windowWidthSizeClass) {
189
- WindowWidthSizeClass .COMPACT -> {
188
+ androidx.window.core.layout. WindowWidthSizeClass .COMPACT -> {
190
189
maxHorizontalPartitions = 1
191
190
verticalSpacerSize = 0 .dp
192
191
}
193
- WindowWidthSizeClass .MEDIUM -> {
192
+ androidx.window.core.layout. WindowWidthSizeClass .MEDIUM -> {
194
193
maxHorizontalPartitions = 1
195
194
verticalSpacerSize = 0 .dp
196
195
}
@@ -237,7 +236,7 @@ private fun getExcludedVerticalBounds(posture: Posture, hingePolicy: HingePolicy
237
236
}
238
237
239
238
private fun androidx.window.core.layout.WindowSizeClass.isCompact (): Boolean =
240
- windowWidthSizeClass == WindowWidthSizeClass .COMPACT ||
239
+ windowWidthSizeClass == androidx.window.core.layout. WindowWidthSizeClass .COMPACT ||
241
240
windowHeightSizeClass == WindowHeightSizeClass .COMPACT
242
241
243
242
@OptIn(ExperimentalMaterial3AdaptiveApi ::class )
0 commit comments