Do not reinit on pause (#6732)

The call to `reinit()` causes Android Auto to close the player view when pausing
This commit is contained in:
Harshad Vedartham 2023-11-01 07:56:28 -07:00 committed by GitHub
parent 691ed73910
commit 2c3fb5610a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1774,7 +1774,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
public void onPause() { public void onPause() {
Log.d(TAG, "onPause()"); Log.d(TAG, "onPause()");
if (getStatus() == PlayerStatus.PLAYING) { if (getStatus() == PlayerStatus.PLAYING) {
pause(!UserPreferences.isPersistNotify(), true); pause(!UserPreferences.isPersistNotify(), false);
} }
} }