summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Aurélien Pomini <pomini@google.com> 2024-01-09 18:02:56 +0000
committer Aurélien Pomini <pomini@google.com> 2024-01-10 14:55:36 +0000
commitcda765ddf76da58670d90754332ea76327f47ccb (patch)
tree7f32755e26a21148c86a17defb075112e1196e80 /libs/androidfw/ResourceTimer.cpp
parent4a8491e5f4a3e68ea0724bc485d29f0a9e09f331 (diff)
Lock mSurfaceHolder=null in ImageWallpaper
There is a race condition where WallpaperEngine#onSurfaceDestroyed is being triggered right before the image is drawn in ImageWallpaper#drawFrameOnCanvas. Adding synchronization makes sure the null check in drawFrameInternal avoids this. Flag: NA Bug: 279589555 Test: atest ImageWallpaperTest Test: atest WallpaperLocalColorExtractorTest Test: atest WallpaperManagerTest Test: manual (check picker basic user journeys) Change-Id: I650bd31faed96383258105335b5ad92448a840f3
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions