Fix WindowSizeClass breakpoint compat
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user