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

Commit c50232d5 authored by satok's avatar satok
Browse files

Add hashCode to InputMethodInfo

The uniqueness of InputMethodInfo was guaranteed by mId (like InputMethodInfo#equals), but the hashCode was not implemented in the same way.
This change fixes a problem happening when the user gets the hashCode of InputMethodInfo obtained through IPC.

Change-Id: Ib876c5cb0d778481100597ec31202f94fb7b8f37
parent 8da36372
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -267763,7 +267763,7 @@
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="arg0" type="T">
<parameter name="t" type="T">
</parameter>
</method>
</interface>
+6 −1
Original line number Diff line number Diff line
@@ -323,6 +323,11 @@ public final class InputMethodInfo implements Parcelable {
        return mId.equals(obj.mId);
    }

    @Override
    public int hashCode() {
        return mId.hashCode();
    }

    /**
     * Used to package this object into a {@link Parcel}.
     *