mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-11 01:40:59 +00:00
Refactor KioskTab.equals
This commit is contained in:
parent
01aab25889
commit
1cac3895dc
@ -362,8 +362,13 @@ public abstract class Tab {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
return super.equals(obj) && kioskServiceId == ((KioskTab) obj).kioskServiceId
|
if (!(obj instanceof KioskTab)) {
|
||||||
&& Objects.equals(kioskId, ((KioskTab) obj).kioskId);
|
return false;
|
||||||
|
}
|
||||||
|
final KioskTab other = (KioskTab) obj;
|
||||||
|
return super.equals(obj)
|
||||||
|
&& kioskServiceId == other.kioskServiceId
|
||||||
|
&& kioskId.equals(other.kioskId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getKioskServiceId() {
|
public int getKioskServiceId() {
|
||||||
|
Loading…
Reference in New Issue
Block a user