We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0562ff commit 913d0deCopy full SHA for 913d0de
app/src/main/kotlin/li/songe/gkd/MainActivity.kt
@@ -162,8 +162,8 @@ class MainActivity : ComponentActivity() {
162
val imePlayingFlow = MutableStateFlow(false)
163
164
private val imeVisible: Boolean
165
- get() = ViewCompat.getRootWindowInsets(window.decorView)!!
166
- .isVisible(WindowInsetsCompat.Type.ime())
+ get() = ViewCompat.getRootWindowInsets(window.decorView)
+ ?.isVisible(WindowInsetsCompat.Type.ime()) == true // fix #1315
167
168
var topBarWindowInsets by mutableStateOf(WindowInsets(top = BarUtils.getStatusBarHeight()))
169
0 commit comments