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

Commit eff48da6 authored by Aurélien Pomini's avatar Aurélien Pomini Committed by Android (Google) Code Review
Browse files

Merge "Fix b/318722891 (unwanted onSurfaceCreated event)" into main

parents a9cec4c2 4aedc3bd
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1439,12 +1439,12 @@ public abstract class WallpaperService extends Service {
                                // to make sure the wallpaper is stopped even after the events
                                // onSurfaceCreated() and onSurfaceChanged().
                                if (noConsecutiveVisibilityEvents()) {
                                    if (DEBUG) Log.v(TAG, "toggling doVisibilityChanged");
                                    Trace.beginSection("WPMS.Engine.doVisibilityChanged-true");
                                    doVisibilityChanged(true);
                                    if (DEBUG) Log.v(TAG, "toggling onVisibilityChanged");
                                    Trace.beginSection("WPMS.Engine.onVisibilityChanged-true");
                                    onVisibilityChanged(true);
                                    Trace.endSection();
                                    Trace.beginSection("WPMS.Engine.doVisibilityChanged-false");
                                    doVisibilityChanged(false);
                                    Trace.beginSection("WPMS.Engine.onVisibilityChanged-false");
                                    onVisibilityChanged(false);
                                    Trace.endSection();
                                } else {
                                    if (DEBUG) {