|
|
|
|
77
|
}
|
77
|
}
|
78
|
|
78
|
|
79
|
private void maybeUpdateInsets() {
|
79
|
private void maybeUpdateInsets() {
|
80
|
- if (!isAttachedToWindow()) {
|
|
|
81
|
- return;
|
|
|
82
|
- }
|
|
|
83
|
-
|
|
|
84
|
EdgeInsets edgeInsets = getSafeAreaInsets();
|
80
|
EdgeInsets edgeInsets = getSafeAreaInsets();
|
85
|
if (mLastInsets == null || !mLastInsets.equalsToEdgeInsets(edgeInsets)) {
|
81
|
if (mLastInsets == null || !mLastInsets.equalsToEdgeInsets(edgeInsets)) {
|
86
|
Assertions.assertNotNull(mInsetsChangeListener).onInsetsChange(this, edgeInsets);
|
82
|
Assertions.assertNotNull(mInsetsChangeListener).onInsetsChange(this, edgeInsets);
|