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

Commit fd971bb1 authored by Santiago Seifert's avatar Santiago Seifert Committed by Gerrit Code Review
Browse files

Merge "Simplify UserHandle.equals"

parents 6daa1f6d 5a5038dd
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -597,13 +597,10 @@ public final class UserHandle implements Parcelable {

    @Override
    public boolean equals(@Nullable Object obj) {
        try {
            if (obj != null) {
        if (obj instanceof UserHandle) {
            UserHandle other = (UserHandle) obj;
            return mHandle == other.mHandle;
        }
        } catch (ClassCastException ignore) {
        }
        return false;
    }