summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Aurélien Pomini <pomini@google.com> 2025-01-13 14:11:43 +0000
committer Aurélien Pomini <pomini@google.com> 2025-01-14 16:57:26 +0000
commite2777eaf0d199613c56424a2a9573829b4eb9362 (patch)
tree2e237b0971d4e1e9a18a201b9206af131286b4e7 /libs/androidfw/AttributeResolution.cpp
parentf1610effbc9c77d602e63567a49146a8f291623e (diff)
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
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions