1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-26 07:03:20 +00:00

Add PlaylistTab.hashCode() matching equals

This commit is contained in:
Eric Xu 2021-05-22 00:37:39 -04:00 committed by Zhiheng Xu
parent 2fc26bc154
commit 448989f32f

View File

@ -618,6 +618,18 @@ public abstract class Tab {
&& playlistType == other.playlistType;
}
@Override
public int hashCode() {
return Objects.hash(
getTabId(),
playlistServiceId,
playlistId,
playlistUrl,
playlistName,
playlistType
);
}
public int getPlaylistServiceId() {
return playlistServiceId;
}