Merge "Set alpha to 0 on attach to avoid flicker at transition start." into udc-dev

This commit is contained in:
Mateusz Cicheński
2023-05-16 19:45:59 +00:00
committed by Android (Google) Code Review

View File

@@ -206,6 +206,7 @@ public abstract class PipContentOverlay {
tx.show(mLeash);
tx.setLayer(mLeash, Integer.MAX_VALUE);
tx.setBuffer(mLeash, mBitmap.getHardwareBuffer());
tx.setAlpha(mLeash, 0f);
tx.reparent(mLeash, parentLeash);
tx.apply();
}