Skip to content
Commit 78a3d469 authored by chaviw's avatar chaviw
Browse files

Destroy dim layer in transaction.

Currently the destroy is done outside a transaction, causing the layer
to get destroyed while the animation is still holding a reference to it.
Instead, call destroy in the transaction to ensure the destroy executes
with the other transaction requests that occur at the end of the
animation.

Specifically, the reparent was occurring after the destroy completed,
causing the surface to get reparented and remain around forever.

Change-Id: I72c2a6f2a67673fdc2047d78b02a299f64fc44a0
Fixes: 117401895
Test: Repro steps from bug
Test: DimmerTests
parent d60f2b04
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment