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

Commit 079cf667 authored by Johannes Gallmann's avatar Johannes Gallmann Committed by Android (Google) Code Review
Browse files

Merge "Implement equals method in BackEvent.java" into main

parents ca377d7d 99736dbc
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{"