@@ -852,8 +852,7 @@ private void runWorker(final boolean forceLoad, final boolean addToBackStack) {
852852 if (playQueue == null ) {
853853 playQueue = new SinglePlayQueue (result );
854854 }
855- if (stack .isEmpty () || !stack .peek ().getPlayQueue ()
856- .equalStreams (playQueue )) {
855+ if (stack .isEmpty () || !stack .peek ().getPlayQueue ().equals (playQueue )) {
857856 stack .push (new StackItem (serviceId , url , title , playQueue ));
858857 }
859858 }
@@ -1739,7 +1738,7 @@ public void onQueueUpdate(final PlayQueue queue) {
17391738 // deleted/added items inside Channel/Playlist queue and makes possible to have
17401739 // a history of played items
17411740 @ Nullable final StackItem stackPeek = stack .peek ();
1742- if (stackPeek != null && !stackPeek .getPlayQueue ().equalStreams (queue )) {
1741+ if (stackPeek != null && !stackPeek .getPlayQueue ().equals (queue )) {
17431742 @ Nullable final PlayQueueItem playQueueItem = queue .getItem ();
17441743 if (playQueueItem != null ) {
17451744 stack .push (new StackItem (playQueueItem .getServiceId (), playQueueItem .getUrl (),
@@ -1803,7 +1802,7 @@ public void onMetadataUpdate(final StreamInfo info, final PlayQueue queue) {
18031802 // They are not equal when user watches something in popup while browsing in fragment and
18041803 // then changes screen orientation. In that case the fragment will set itself as
18051804 // a service listener and will receive initial call to onMetadataUpdate()
1806- if (!queue .equalStreams (playQueue )) {
1805+ if (!queue .equals (playQueue )) {
18071806 return ;
18081807 }
18091808
@@ -2075,7 +2074,7 @@ private StackItem findQueueInStack(final PlayQueue queue) {
20752074 final Iterator <StackItem > iterator = stack .descendingIterator ();
20762075 while (iterator .hasNext ()) {
20772076 final StackItem next = iterator .next ();
2078- if (next .getPlayQueue ().equalStreams (queue )) {
2077+ if (next .getPlayQueue ().equals (queue )) {
20792078 item = next ;
20802079 break ;
20812080 }
@@ -2089,8 +2088,7 @@ private void replaceQueueIfUserConfirms(final Runnable onAllow) {
20892088 // Player will have STATE_IDLE when a user pressed back button
20902089 if (isClearingQueueConfirmationRequired (activity )
20912090 && playerIsNotStopped ()
2092- && activeQueue != null
2093- && !activeQueue .equalStreams (playQueue )) {
2091+ && !Objects .equals (activeQueue , playQueue )) {
20942092 showClearingQueueConfirmation (onAllow );
20952093 } else {
20962094 onAllow .run ();
0 commit comments