Merge "Always invoke show on the dismiss target for pip." into tm-qpr-dev

This commit is contained in:
Mateusz Cicheński
2022-08-17 03:47:14 +00:00
committed by Android (Google) Code Review

View File

@@ -288,8 +288,10 @@ public class PipDismissTargetHandler implements ViewTreeObserver.OnPreDrawListen
if (mTargetViewContainer.getVisibility() != View.VISIBLE) {
mTargetViewContainer.getViewTreeObserver().addOnPreDrawListener(this);
mTargetViewContainer.show();
}
// always invoke show, since the target might still be VISIBLE while playing hide animation,
// so we want to ensure it will show back again
mTargetViewContainer.show();
}
/** Animates the magnetic dismiss target out and then sets it to GONE. */