Reset playback info but not position/state in release

ImaAdsLoader gets the player position after the app releases
the player to support resuming ads at their current position
if the same ads loader is reused.

PiperOrigin-RevId: 243969916
This commit is contained in:
andrewlewis 2019-04-17 11:47:48 +01:00 committed by Oliver Woodman
parent dcb8417a3c
commit 6b0fd51378

View file

@ -403,8 +403,8 @@ import java.util.concurrent.CopyOnWriteArrayList;
eventHandler.removeCallbacksAndMessages(null);
playbackInfo =
getResetPlaybackInfo(
/* resetPosition= */ true,
/* resetState= */ true,
/* resetPosition= */ false,
/* resetState= */ false,
/* playbackState= */ Player.STATE_IDLE);
}