Merge "Skip null surface when validating transition" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-06-26 08:10:45 +00:00
committed by Android (Google) Code Review

View File

@@ -2666,7 +2666,10 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
mController.mStateValidators.add(() -> {
for (int i = mTargets.size() - 1; i >= 0; --i) {
final ChangeInfo change = mTargets.get(i);
if (!change.mContainer.isVisibleRequested()) continue;
if (!change.mContainer.isVisibleRequested()
|| change.mContainer.mSurfaceControl == null) {
continue;
}
Slog.e(TAG, "Force show for visible " + change.mContainer
+ " which may be hidden by transition unexpectedly");
change.mContainer.getSyncTransaction().show(change.mContainer.mSurfaceControl);