Remove unnecessary conditions
This commit is contained in:
parent
24f734f1b6
commit
a17f24912f
|
@ -305,7 +305,7 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements
|
|||
return false;
|
||||
}
|
||||
Playable media = controller.getMedia();
|
||||
boolean isFeedMedia = media != null && (media instanceof FeedMedia);
|
||||
boolean isFeedMedia = (media instanceof FeedMedia);
|
||||
|
||||
menu.findItem(R.id.open_feed_item).setVisible(isFeedMedia); // FeedMedia implies it belongs to a Feed
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ public abstract class FeedComponent {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof FeedComponent)) return false;
|
||||
if (!(o instanceof FeedComponent)) return false;
|
||||
|
||||
FeedComponent that = (FeedComponent) o;
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ public class DownloadRequest implements Parcelable {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof DownloadRequest)) return false;
|
||||
if (!(o instanceof DownloadRequest)) return false;
|
||||
|
||||
DownloadRequest that = (DownloadRequest) o;
|
||||
|
||||
|
|
Loading…
Reference in New Issue