fix: invalidate insets when disabling overflow

This commit is contained in:
Osei Fortune
2025-11-04 17:05:51 -04:00
parent ce20233674
commit ce6817bfc3
2 changed files with 1 additions and 0 deletions

View File

Binary file not shown.

View File

@@ -203,6 +203,7 @@ public abstract class LayoutBase extends ViewGroup {
if (value == OverflowEdgeIgnore) { if (value == OverflowEdgeIgnore) {
ViewCompat.setOnApplyWindowInsetsListener(this, null); ViewCompat.setOnApplyWindowInsetsListener(this, null);
ViewCompat.requestApplyInsets(this);
} else if (windowInsetsListener == null) { } else if (windowInsetsListener == null) {
// if incoming inset is empty and previous inset is empty return consumed // if incoming inset is empty and previous inset is empty return consumed
// an incoming empty inset is one way to detect a consumed inset e.g multiple views consumed top/bottom // an incoming empty inset is one way to detect a consumed inset e.g multiple views consumed top/bottom