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

Commit 99736dbc authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Implement equals method in BackEvent.java

Bug: 362938401
Test: Presubmit
Flag: EXEMPT implement equals method
Change-Id: I746bd52b7f74960e5f224187a125dc99f202d3f8
parent f6d48701
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -155,6 +155,22 @@ public final class BackEvent {
        return mFrameTime;
    }

    @Override
    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof BackEvent)) {
            return false;
        }
        final BackEvent that = (BackEvent) other;
        return mTouchX == that.mTouchX
                && mTouchY == that.mTouchY
                && mProgress == that.mProgress
                && mSwipeEdge == that.mSwipeEdge
                && mFrameTime == that.mFrameTime;
    }

    @Override
    public String toString() {
        return "BackEvent{"