Merge "Don't try to use display of detached task to update insets" into tm-qpr-dev

This commit is contained in:
Evan Rosky
2022-09-28 18:42:13 +00:00
committed by Android (Google) Code Review

View File

@@ -477,8 +477,11 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
} }
mLocalInsetsSourceProviders.remove(insetsTypes[i]); mLocalInsetsSourceProviders.remove(insetsTypes[i]);
} }
// Update insets if this window is attached.
if (mDisplayContent != null) {
mDisplayContent.getInsetsStateController().updateAboveInsetsState(true); mDisplayContent.getInsetsStateController().updateAboveInsetsState(true);
} }
}
/** /**
* Sets an {@link InsetsSourceProvider} to be associated with this {@code WindowContainer}, * Sets an {@link InsetsSourceProvider} to be associated with this {@code WindowContainer},