We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 531187f commit 291553aCopy full SHA for 291553a
library/src/main/java/cn/jailedbird/edgeutils/EdgeControl.kt
@@ -142,7 +142,7 @@ internal object EdgeControl {
142
@Deprecated("replace with getSuspendCustomRootWindowInsets with coroutine")
143
private fun Window.getCustomRootWindowInsets(): WindowInsetsCompat? {
144
val res = ViewCompat.getRootWindowInsets(this.decorView)
145
- if (res == null) {
+ if (res == null && BuildConfig.DEBUG) {
146
Toast.makeText(
147
context.applicationContext,
148
"ViewCompat.getRootWindowInsets(this.decorView) is null, please use View.post{ called_api } to ensure View has Attached",
0 commit comments