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

Skip to content
Commit 427778b0 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Show pip until drawn with entering bounds if rotation changes

The request transition may be a CHANGE type for display rotation,
So augmentRequest is unable to set the entering bounds at the
request stage. And when the CHANGE transition is ready, it includes
the entering pip info. Then the entering bounds will be applied at
the end of enter animation, which could cause to flicker because
the redraw of app configuration. The case only happens with type
ANIM_TYPE_ALPHA (i.e. swipe enter non-auto pip) because there
won't have pip overlay. Note that pip overlay is not a good option
for ANIM_TYPE_ALPHA because the non-opaque alpha is applied on task,
it will be ugly that both overlay and app content are visible.

So just simply keep the pip task invisible until it is redraw with
the entering bounds, and then play fade-in animation when the
drawn transaction is committed.

Bug: 342071665
Test: Swipe entering a non-auto pip activity.
      The pip activity should not flicker during the
      fade-in animation.

Change-Id: Idd6a7f8b70c0e28cc570af77c72f3b9e1a997f72
parent b0f4faad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment