Fix WindowSizeClass breakpoint compat

This commit is contained in:
世界 committed 2026-02-03 18:14:57 +08:00
1 parent 53f130aba2
commit 46d2b6576c
6 files changed
+37 -7

No files matched your search

@@ -0,0 +1,10 @@
package io.nekohasekai.sfa.compat
import androidx.window.core.layout.WindowSizeClass
object WindowSizeClassCompat {
const val WIDTH_DP_MEDIUM_LOWER_BOUND = 600
const val WIDTH_DP_EXPANDED_LOWER_BOUND = 840
}
fun WindowSizeClass.isWidthAtLeastBreakpointCompat(breakpointDp: Int): Boolean = isWidthAtLeastBreakpoint(breakpointDp)