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.
2 parents 3a6e913 + 09ed4e2 commit 875dac5Copy full SHA for 875dac5
OneSignalSDK/onesignal/core/src/main/java/com/onesignal/common/DeviceUtils.kt
@@ -32,7 +32,7 @@ object DeviceUtils {
32
isOpen =
33
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
34
val imeInsets = view.rootWindowInsets
35
- imeInsets.isVisible(WindowInsetsCompat.Type.ime())
+ imeInsets?.isVisible(WindowInsetsCompat.Type.ime()) ?: false
36
} else {
37
// Does not work for cases when keyboard is full screen for Android 9 and below
38
val heightDiff = metrics.heightPixels - visibleBounds.bottom
0 commit comments