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
c9d98080
authored
Aug 19, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Make getRendererEnabled behavior the same as it used to be, until it's removed.
parent
679fa8de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
library/src/main/java/com/google/android/exoplayer/ExoPlayer.java
library/src/main/java/com/google/android/exoplayer/ExoPlayerImpl.java
library/src/main/java/com/google/android/exoplayer/ExoPlayer.java
View file @
c9d98080
...
...
@@ -300,10 +300,9 @@ public interface ExoPlayer {
/**
* Whether the renderer at the given index is enabled.
*
* @deprecated Use {@code getSelectedTrack(rendererIndex)}. A return value between 0 (inclusive)
* and {@code getTrackCount(rendererIndex)} (exclusive) indicate the renderer is enabled. A
* value outside of this range (e.g. {@link #TRACK_DISABLED}) indicates that the renderer is
* disabled.
* @deprecated Use {@code getSelectedTrack(rendererIndex)}. A non-negative return value from that
* method is equivalent to this method returning true. A negative return value is equivalent
* to this method returning false.
* @param rendererIndex The index of the renderer.
* @return Whether the renderer is enabled.
*/
...
...
library/src/main/java/com/google/android/exoplayer/ExoPlayerImpl.java
View file @
c9d98080
...
...
@@ -111,8 +111,7 @@ import java.util.concurrent.CopyOnWriteArraySet;
@Deprecated
@Override
public
boolean
getRendererEnabled
(
int
rendererIndex
)
{
int
selectedTrack
=
getSelectedTrack
(
rendererIndex
);
return
0
<=
selectedTrack
&&
selectedTrack
<
getTrackCount
(
rendererIndex
);
return
getSelectedTrack
(
rendererIndex
)
>=
0
;
}
@Override
...
...
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