Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d048683b authored by Todd Lee's avatar Todd Lee Committed by Android (Google) Code Review
Browse files

Merge "Ensure wallpaper surface is valid (not released) before dimming" into main

parents 0fd4abe6 fc18306c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
            }