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

Commit 5180d1c5 authored by Romain Guy's avatar Romain Guy
Browse files

Prevent infinite loop in the Phone UI.

parent 739e1f8c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -281,8 +281,8 @@ public abstract class Animation implements Cloneable {
     */
     */
    public void detach() {
    public void detach() {
        if (mStarted && !mEnded) {
        if (mStarted && !mEnded) {
            if (mListener != null) mListener.onAnimationEnd(this);
            mEnded = true;
            mEnded = true;
            if (mListener != null) mListener.onAnimationEnd(this);
        }
        }
    }
    }


@@ -776,10 +776,10 @@ public abstract class Animation implements Cloneable {
        if (expired) {
        if (expired) {
            if (mRepeatCount == mRepeated) {
            if (mRepeatCount == mRepeated) {
                if (!mEnded) {
                if (!mEnded) {
                    mEnded = true;
                    if (mListener != null) {
                    if (mListener != null) {
                        mListener.onAnimationEnd(this);
                        mListener.onAnimationEnd(this);
                    }
                    }
                    mEnded = true;
                }
                }
            } else {
            } else {
                if (mRepeatCount > 0) {
                if (mRepeatCount > 0) {