Merge "Set alpha to 0 on attach to avoid flicker at transition start." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dc472531b8
@@ -206,6 +206,7 @@ public abstract class PipContentOverlay {
|
|||||||
tx.show(mLeash);
|
tx.show(mLeash);
|
||||||
tx.setLayer(mLeash, Integer.MAX_VALUE);
|
tx.setLayer(mLeash, Integer.MAX_VALUE);
|
||||||
tx.setBuffer(mLeash, mBitmap.getHardwareBuffer());
|
tx.setBuffer(mLeash, mBitmap.getHardwareBuffer());
|
||||||
|
tx.setAlpha(mLeash, 0f);
|
||||||
tx.reparent(mLeash, parentLeash);
|
tx.reparent(mLeash, parentLeash);
|
||||||
tx.apply();
|
tx.apply();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user