commit | 52d63e7e4c3e0db42f72f8f55453a47d62b8aa22 | [log] [tgz] |
---|---|---|
author | Ahan Wu <ahanwu@google.com> | Tue Apr 12 10:19:52 2022 +0000 |
committer | Ahan Wu <ahanwu@google.com> | Wed Apr 13 04:02:27 2022 +0000 |
tree | aa43afc090818b4e5d8433429a7eeb9f000b08ad | |
parent | 2e495889be6991ca539c94840d5f35a4e9dd99f0 [diff] |
DO NOT MERGE: Don't do heavy operation while in the synchronized block We read the wallpaper within the synchronized block, this is a long time operation, might block the other thread who is going to obtain the lock. So we have to move the operation beyond the synchronized block. Bug: 228435216 Test: atest WallpaperManagerTest#testPeekWallpaperNotBlockingOtherThread Change-Id: Ic2a947b473710ffe68db436586769858950588a4