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

Commit 65e59d9a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ensure surface control is valid before trying BBQ update" into main

parents 64358d6a 25c37616
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2397,7 +2397,11 @@ public abstract class WallpaperService extends Service {
                // it hasn't changed and there is no need to update.
                ret = mBlastBufferQueue.createSurface();
            } else {
                if (mBbqSurfaceControl != null && mBbqSurfaceControl.isValid()) {
                    mBlastBufferQueue.update(mBbqSurfaceControl, width, height, format);
                } else {
                    Log.w(TAG, "Skipping BlastBufferQueue update - invalid surface control");
                }
            }

            return ret;