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
50db2ee1
authored
Feb 09, 2021
by
olly
Committed by
Oliver Woodman
Feb 09, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated Player.DefaultEventListener
PiperOrigin-RevId: 356479682
parent
30ad70bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
28 deletions
RELEASENOTES.md
library/common/src/main/java/com/google/android/exoplayer2/Player.java
RELEASENOTES.md
View file @
50db2ee1
...
...
@@ -14,10 +14,12 @@
an ad media period before the ad URI was known then an ad state update
arrived that didn't set the ad URI.
*
Remove deprecated symbols:
*
Remove
`
extension-jobdispatcher`
module. Use the
`extension-workmanag
er`
module
instead.
*
Remove
`
Player.DefaultEventListener`
. Use
`Player.EventListen
er`
instead.
*
Remove
`DownloadNotificationUtil`
. Use
`DownloadNotificationHelper`
instead.
*
Remove
`extension-jobdispatcher`
module. Use the
`extension-workmanager`
module instead.
### 2.13.0 (2021-02-04)
...
...
library/common/src/main/java/com/google/android/exoplayer2/Player.java
View file @
50db2ee1
...
...
@@ -665,32 +665,6 @@ public interface Player {
default
void
onEvents
(
Player
player
,
Events
events
)
{}
}
/**
* @deprecated Use {@link EventListener} interface directly for selective overrides as all methods
* are implemented as no-op default methods.
*/
@Deprecated
abstract
class
DefaultEventListener
implements
EventListener
{
@Override
public
void
onTimelineChanged
(
Timeline
timeline
,
@TimelineChangeReason
int
reason
)
{
Object
manifest
=
null
;
if
(
timeline
.
getWindowCount
()
==
1
)
{
// Legacy behavior was to report the manifest for single window timelines only.
Timeline
.
Window
window
=
new
Timeline
.
Window
();
manifest
=
timeline
.
getWindow
(
0
,
window
).
manifest
;
}
// Call deprecated version.
onTimelineChanged
(
timeline
,
manifest
,
reason
);
}
@Override
public
void
onTimelineChanged
(
Timeline
timeline
,
@Nullable
Object
manifest
,
@TimelineChangeReason
int
reason
)
{
// Do nothing.
}
}
/** A set of {@link EventFlags}. */
final
class
Events
extends
MutableFlags
{
/**
...
...
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