Merge "Merge "Set alpha to 1 if not using alpha animation" into udc-dev am: 7de2640dd8 am: cf4d63418a"

This commit is contained in:
Automerger Merge Worker
2023-06-23 19:20:34 +00:00
committed by Android (Google) Code Review

View File

@@ -856,6 +856,9 @@ public class PipTransition extends PipTransitionController {
final int enterAnimationType = mEnterAnimationType;
if (enterAnimationType == ANIM_TYPE_ALPHA) {
startTransaction.setAlpha(leash, 0f);
} else {
// set alpha to 1, because for multi-activity PiP it will create a new task with alpha 0
startTransaction.setAlpha(leash, 1f);
}
startTransaction.apply();