Skip to content

Commit 291553a

Browse files
committed
feat: with DEBUG
1 parent 531187f commit 291553a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/cn/jailedbird/edgeutils/EdgeControl.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ internal object EdgeControl {
142142
@Deprecated("replace with getSuspendCustomRootWindowInsets with coroutine")
143143
private fun Window.getCustomRootWindowInsets(): WindowInsetsCompat? {
144144
val res = ViewCompat.getRootWindowInsets(this.decorView)
145-
if (res == null) {
145+
if (res == null && BuildConfig.DEBUG) {
146146
Toast.makeText(
147147
context.applicationContext,
148148
"ViewCompat.getRootWindowInsets(this.decorView) is null, please use View.post{ called_api } to ensure View has Attached",

0 commit comments

Comments
 (0)