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

Commit b078fee0 authored by Patrik Torstensson's avatar Patrik Torstensson Committed by Android (Google) Code Review
Browse files

Merge "Fix race condition between loading wallpaper and unloading."

parents 81ac13a8 f676400e
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -405,10 +405,7 @@ public class ImageWallpaper extends WallpaperService {
                    }
                } else {
                    drawWallpaperWithCanvas(sh, availw, availh, xPixels, yPixels);
                }
            } finally {
                Trace.traceEnd(Trace.TRACE_TAG_VIEW);
                if (FIXED_SIZED_SURFACE && !mIsHwAccelerated) {
                    if (FIXED_SIZED_SURFACE) {
                        // If the surface is fixed-size, we should only need to
                        // draw it once and then we'll let the window manager
                        // position it appropriately.  As such, we no longer needed
@@ -417,6 +414,9 @@ public class ImageWallpaper extends WallpaperService {
                        unloadWallpaper(false /* forgetSize */);
                    }
                }
            } finally {
                Trace.traceEnd(Trace.TRACE_TAG_VIEW);
            }
        }

        /**