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

Commit d2129037 authored by Sunny Goyal's avatar Sunny Goyal Committed by Android (Google) Code Review
Browse files

Merge "Fixing equality check in ComponentKey" into main

parents 00abe511 cb3ccbc9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -48,8 +48,8 @@ public class ComponentKey {

    @Override
    public boolean equals(Object o) {
        ComponentKey other = (ComponentKey) o;
        return other.componentName.equals(componentName) && other.user.equals(user);
        return (o instanceof ComponentKey other)
                && other.componentName.equals(componentName) && other.user.equals(user);
    }

    /**