Add missing thread verification to SimpleExoPlayer.release().

This call also needs to be made from the right thread to prevent messages
from getting lost and causing ANRs.

PiperOrigin-RevId: 239564573
This commit is contained in:
tonihei 2019-03-21 10:07:30 +00:00 committed by Oliver Woodman
parent 68ef1d3e97
commit a989304a4d

View file

@ -980,6 +980,7 @@ public class SimpleExoPlayer extends BasePlayer
@Override
public void release() {
verifyApplicationThread();
audioFocusManager.handleStop();
player.release();
removeSurfaceCallbacks();