Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d137a1db authored by Mateusz Cicheński's avatar Mateusz Cicheński
Browse files

Set alpha to 0 on attach to avoid flicker at transition start.

Otherwise there is a race condition risk of rendering it for one frame
before it actually gets the first call to onAnimationUpdate.

Change-Id: Ifcf7103a78631c6c1408735acf3eb13888ae8dea
Test: manual, 20x enter Maps PiP without the repro of overlay flicker
Bug: 281711939
parent fd8948a9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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();
        }