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

Commit e2777eaf authored by Aurélien Pomini's avatar Aurélien Pomini
Browse files

Fix wallpaper dim race condition

The updateListener from updateWallpaperDimming is always run on the UI
thread. The other methods of the engine (here detach()) may run on
another thread if onProvideEngineLooper is overriden, which is the case
for ImageWallpaper.

This can cause a crash if the detach() is called while the wallpaper dim
animation is running. To avoid this, we add a small lock for both the
surface release operations and the wallpaper dim update.

Flag: EXEMPT bugfix
Bug: 386999490
Test: presubmit
Change-Id: I01d014996b0a2df65e17867d1629a211f37f5322
parent f1610eff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment