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

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

Merge "Add mDestroyed null check" into main

parents 493863da 128217d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2556,7 +2556,7 @@ public abstract class WallpaperService extends Service {
        private void doDetachEngine() {
            // Some wallpapers will not trigger the rendering threads of the remaining engines even
            // if they are visible, so we need to toggle the state to get their attention.
            if (!mEngine.mDestroyed) {
            if (mEngine != null && !mEngine.mDestroyed) {
                mEngine.detach();
                synchronized (mActiveEngines) {
                    for (IWallpaperEngineWrapper engineWrapper : mActiveEngines.values()) {