Skip to content
Snippets Groups Projects
Commit fc18306c authored by Todd Lee's avatar Todd Lee
Browse files

Ensure wallpaper surface is valid (not released) before dimming

Flag: NONE - just adding surface validation check
Bug: b/324659948
Test: check wallpaper detach/no crash
Change-Id: If991d255f7d3962661c94d4f626524b4012d29ab
parent 8bdef1f0
No related branches found
No related tags found
No related merge requests found
......@@ -1025,7 +1025,8 @@ public abstract class WallpaperService extends Service {
mWallpaperDimAmount = (!mShouldDimByDefault) ? mCustomDimAmount
: Math.max(mDefaultDimAmount, mCustomDimAmount);
if (!ENABLE_WALLPAPER_DIMMING || mBbqSurfaceControl == null
if (!ENABLE_WALLPAPER_DIMMING
|| mBbqSurfaceControl == null || !mBbqSurfaceControl.isValid()
|| mWallpaperDimAmount == mPreviousWallpaperDimAmount) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment