mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Finish pending session if there is one before creating a new one.
PiperOrigin-RevId: 423819515
This commit is contained in:
parent
6af74e7f0f
commit
caa0a09c2f
1 changed files with 1 additions and 2 deletions
|
|
@ -16,7 +16,6 @@
|
|||
package com.google.android.exoplayer2.analytics;
|
||||
|
||||
import static com.google.android.exoplayer2.util.Assertions.checkNotNull;
|
||||
import static com.google.android.exoplayer2.util.Assertions.checkState;
|
||||
import static com.google.android.exoplayer2.util.Util.castNonNull;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
|
|
@ -172,7 +171,7 @@ public final class MediaMetricsListener
|
|||
// Ignore ad sessions.
|
||||
return;
|
||||
}
|
||||
checkState(activeSessionId == null);
|
||||
finishCurrentSession();
|
||||
activeSessionId = sessionId;
|
||||
metricsBuilder =
|
||||
new PlaybackMetrics.Builder()
|
||||
|
|
|
|||
Loading…
Reference in a new issue