Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
caa0a09c
authored
Jan 24, 2022
by
tonihei
Committed by
Ian Baker
Jan 25, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Finish pending session if there is one before creating a new one.
PiperOrigin-RevId: 423819515
parent
6af74e7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
library/core/src/main/java/com/google/android/exoplayer2/analytics/MediaMetricsListener.java
library/core/src/main/java/com/google/android/exoplayer2/analytics/MediaMetricsListener.java
View file @
caa0a09c
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
package
com
.
google
.
android
.
exoplayer2
.
analytics
;
package
com
.
google
.
android
.
exoplayer2
.
analytics
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
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
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
castNonNull
;
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
...
@@ -172,7 +171,7 @@ public final class MediaMetricsListener
...
@@ -172,7 +171,7 @@ public final class MediaMetricsListener
// Ignore ad sessions.
// Ignore ad sessions.
return
;
return
;
}
}
checkState
(
activeSessionId
==
null
);
finishCurrentSession
(
);
activeSessionId
=
sessionId
;
activeSessionId
=
sessionId
;
metricsBuilder
=
metricsBuilder
=
new
PlaybackMetrics
.
Builder
()
new
PlaybackMetrics
.
Builder
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment