Fix style issues
This commit is contained in:
parent
13c0fdef08
commit
248212588d
|
@ -577,20 +577,15 @@ public abstract class Tab {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
final boolean baseEquals = super.equals(obj)
|
if (!(super.equals(obj)
|
||||||
&& Objects.equals(playlistType, ((PlaylistTab) obj).playlistType)
|
&& Objects.equals(playlistType, ((PlaylistTab) obj).playlistType)
|
||||||
&& Objects.equals(playlistName, ((PlaylistTab) obj).playlistName);
|
&& Objects.equals(playlistName, ((PlaylistTab) obj).playlistName))) {
|
||||||
|
return false; // base objects are different
|
||||||
if (!baseEquals) {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final boolean localPlaylistEquals = playlistId == ((PlaylistTab) obj).playlistId;
|
return (playlistId == ((PlaylistTab) obj).playlistId) // local
|
||||||
final boolean remotePlaylistEquals =
|
|| (playlistServiceId == ((PlaylistTab) obj).playlistServiceId // remote
|
||||||
playlistServiceId == ((PlaylistTab) obj).playlistServiceId
|
&& Objects.equals(playlistUrl, ((PlaylistTab) obj).playlistUrl));
|
||||||
&& Objects.equals(playlistUrl, ((PlaylistTab) obj).playlistUrl);
|
|
||||||
|
|
||||||
return localPlaylistEquals || remotePlaylistEquals;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getPlaylistServiceId() {
|
public int getPlaylistServiceId() {
|
||||||
|
|
|
@ -653,5 +653,5 @@
|
||||||
<string name="detail_sub_channel_thumbnail_view_description">Channel\'s avatar thumbnail</string>
|
<string name="detail_sub_channel_thumbnail_view_description">Channel\'s avatar thumbnail</string>
|
||||||
<string name="channel_created_by">Created by %s</string>
|
<string name="channel_created_by">Created by %s</string>
|
||||||
<string name="video_detail_by">By %s</string>
|
<string name="video_detail_by">By %s</string>
|
||||||
<string name="playlist_page_summary">Playlist Page</string>
|
<string name="playlist_page_summary">Playlist page</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue