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

Commit b4e1f173 authored by Philip Junker's avatar Philip Junker Committed by Android (Google) Code Review
Browse files

Merge "Send shutdown callback only during animation destruction"

parents 0a6b674c 60600569
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -605,6 +605,7 @@ bool BootAnimation::threadLoop() {
        result = movie();
    }

    mCallbacks->shutdown();
    eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
    eglDestroyContext(mDisplay, mContext);
    eglDestroySurface(mDisplay, mSurface);
@@ -691,7 +692,6 @@ void BootAnimation::checkExit() {
    int exitnow = atoi(value);
    if (exitnow) {
        requestExit();
        mCallbacks->shutdown();
    }
}