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,7 +477,10 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
}
mLocalInsetsSourceProviders.remove(insetsTypes[i]);
}
mDisplayContent.getInsetsStateController().updateAboveInsetsState(true);
// Update insets if this window is attached.
if (mDisplayContent != null) {
mDisplayContent.getInsetsStateController().updateAboveInsetsState(true);
}
}
/**