Bump floret-kit, run the insets test edge-to-edge (#177)

This commit is contained in:
makiolaj committed 2026-11-25 12:33:02 +01:00
1 parent acf482246b
commit 9f11adf63b
2 files changed
+7 -4

No files matched your search

@@ -4,11 +4,13 @@ import android.graphics.Insets
import android.view.View
import android.view.WindowInsets
import android.view.WindowInsetsAnimation
import androidx.activity.ComponentActivity
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.WindowInsets as ComposeInsets
import androidx.compose.foundation.layout.ime
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalView
import androidx.compose.ui.test.junit4.v2.createComposeRule
import androidx.compose.ui.test.junit4.v2.createAndroidComposeRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.SdkSuppress
import com.google.common.truth.Truth.assertThat
@@ -22,11 +24,11 @@ import org.junit.runner.RunWith
* duration; Compose then keeps the last keyboard height it saw (#177).
*/
@RunWith(AndroidJUnit4::class)
@SdkSuppress(minSdkVersion = 30)
@SdkSuppress(minSdkVersion = 35)
class ImeInsetsResyncTest {
@get:Rule
val rule = createComposeRule()
val rule = createAndroidComposeRule<ComponentActivity>()
@Volatile
private var imeBottom = -1
@@ -49,6 +51,7 @@ class ImeInsetsResyncTest {
}
private fun setContent(resync: Boolean) {
rule.runOnUiThread { rule.activity.enableEdgeToEdge() }
rule.setContent {
if (resync) ImeInsetsResync()
view = LocalView.current