@@ -480,7 +480,7 @@ public void handleIntent(@NonNull final Intent intent) {
480480 && newQueue .size () == 1 && newQueue .getItem () != null
481481 && playQueue != null && playQueue .size () == 1 && playQueue .getItem () != null
482482 && newQueue .getItem ().equals (playQueue .getItem ())
483- && newQueue .getItem ().getRecoveryPosition () != Long . MIN_VALUE ) {
483+ && newQueue .getItem ().getRecoveryPosition () != PlayQueueItem . RECOVERY_UNSET ) {
484484 // Player can have state = IDLE when playback is stopped or failed
485485 // and we should retry in this case
486486 if (simpleExoPlayer .getPlaybackState ()
@@ -509,7 +509,7 @@ public void handleIntent(@NonNull final Intent intent) {
509509 && (playQueue == null || !playQueue .equalStreamsAndIndex (newQueue ))
510510 && !newQueue .isEmpty ()
511511 && newQueue .getItem () != null
512- && newQueue .getItem ().getRecoveryPosition () == Long . MIN_VALUE ) {
512+ && newQueue .getItem ().getRecoveryPosition () == PlayQueueItem . RECOVERY_UNSET ) {
513513 databaseUpdateDisposable .add (recordManager .loadStreamState (newQueue .getItem ())
514514 .observeOn (AndroidSchedulers .mainThread ())
515515 // Do not place initPlayback() in doFinally() because
@@ -1700,7 +1700,7 @@ public void onPlaybackSynchronize(@NonNull final PlayQueueItem item, final boole
17001700 }
17011701
17021702 // sync the player index with the queue index, and seek to the correct position
1703- if (item .getRecoveryPosition () != Long . MIN_VALUE ) {
1703+ if (item .getRecoveryPosition () != PlayQueueItem . RECOVERY_UNSET ) {
17041704 simpleExoPlayer .seekTo (playQueueIndex , item .getRecoveryPosition ());
17051705 playQueue .unsetRecovery (playQueueIndex );
17061706 } else {
0 commit comments