mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix: annotate isAtLeast(int) with @ChecksSdkIntAtLeast
This commit is contained in:
@@ -42,4 +42,5 @@ fun isAtLeastT() = isAtLeast(Build.VERSION_CODES.TIRAMISU)
|
||||
@ChecksSdkIntAtLeast(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||
fun isAtLeastU() = isAtLeast(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||
|
||||
@ChecksSdkIntAtLeast(parameter = 0)
|
||||
fun isAtLeast(version: Int) : Boolean = Build.VERSION.SDK_INT >= version
|
||||
Reference in New Issue
Block a user