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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23786112

Change-Id: Ifa4062e3e74b8454433b7fe0b0bbbaf4d97d28b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mateusz Cicheński
2023-06-23 19:02:27 +00:00
committed by Automerger Merge Worker

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();