Skip to content

Commit

Permalink
Merge pull request #4130 from Stypox/swipe-queueitem-fix
Browse files Browse the repository at this point in the history
[regression] Close player in onPlaybackShutdown()
  • Loading branch information
TobiGr authored Aug 15, 2020
2 parents 5ef407d + 12ac5ef commit 13c9096
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions app/src/main/java/org/schabi/newpipe/player/BasePlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1068,14 +1068,6 @@ protected void onMetadataChanged(@NonNull final MediaSourceTag tag) {
registerView();
}

@Override
public void onPlaybackShutdown() {
if (DEBUG) {
Log.d(TAG, "Shutting down...");
}
destroy();
}

/*//////////////////////////////////////////////////////////////////////////
// General Player
//////////////////////////////////////////////////////////////////////////*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ public void onPlaybackShutdown() {
if (DEBUG) {
Log.d(TAG, "onPlaybackShutdown() called");
}
// Override it because we don't want playerImpl destroyed
service.onDestroy();
}

@Override
Expand Down

0 comments on commit 13c9096

Please sign in to comment.