Do not force relayout for wallpaper visibility change
The force-relayout was added in [1] for the side effect of [2]. Since the preserve-surface has been completely removed in [3]. So [1] can be restored to avoid unnecessary cost. WallpaperService always calls relayout with View.VISIBLE, so unless it requests to remove the wallpaper window, its surface should not be removed. Though currently there might be no such cases, add a log in case something goes wrong. [1]: I79f97df61696eea325183e9b9057cbb10ce8cc66 [2]: Iea8ed86a9c4a7674804152aa44df7ef3d6341768 [3]: I4574ac0d3b8a63b13ac44846e729b73ca0f88f23 Bug: 233599092 Test: No additional relayout from wallpaper when turning on screen, swiping/closing up to home. Test: Toggle overview from wallpaper picker while using live wallpaper. The wallpaper won't disappear. Change-Id: I6673e458b5577f780be17a51cf5de1d6493ab5ca
Loading
Please register or sign in to comment