Skip to content
Commit 1f833085 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Defer updating dim layers if layout is deferred

When a translucent activity is on top of launcher and the activity
is animated away, we update the layers too early in case the
activity window is dimming. After starting the launcher, launcher
is on top of activity already in the hierarchy, but we haven't
started the transtion yet which would prevent the launcher to be
visible on top of activity by the anim layer adjustment.

To fix this, we prevent updating the layers if layout is currently
deferred.

Ideally we would do the whole activityStart in one surface
transaction but that's way too risky at this point.

Test: Open translucent dimming activity over launcher, press home,
ensure no flickering.
Test: go/wm-smoke

Change-Id: I72b8f5f555b555646121355c19cf7813e4f8d7a3
Fixes: 64206558
parent c0c9324f
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