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

Commit 98b10195 authored by Santiago Seifert's avatar Santiago Seifert Committed by Automerger Merge Worker
Browse files

Merge "Simplify UserHandle.equals" am: fd971bb1 am: 16c25717 am: 1e59ca9f

parents 543b3060 1e59ca9f
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -606,13 +606,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;
    }