Skip to content

Commit

Permalink
Add PlaylistTab.hashCode() matching equals
Browse files Browse the repository at this point in the history
  • Loading branch information
imericxu committed May 24, 2021
1 parent 7b8778b commit 99b83cc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/main/java/org/schabi/newpipe/settings/tabs/Tab.java
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,18 @@ public boolean equals(final Object obj) {
&& playlistType == other.playlistType;
}

@Override
public int hashCode() {
return Objects.hash(
getTabId(),
playlistServiceId,
playlistId,
playlistUrl,
playlistName,
playlistType
);
}

public int getPlaylistServiceId() {
return playlistServiceId;
}
Expand Down

0 comments on commit 99b83cc

Please sign in to comment.