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
dbd25d58
authored
Jul 27, 2018
by
Arnold Szabo
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
#4304 - Adjustments after code review
parent
1f12f22b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java
library/ui/src/main/res/values/attrs.xml
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java
View file @
dbd25d58
...
@@ -666,13 +666,13 @@ public class PlayerView extends FrameLayout {
...
@@ -666,13 +666,13 @@ public class PlayerView extends FrameLayout {
* Sets whether a buffering spinner is displayed when the player is in the buffering state. The
* Sets whether a buffering spinner is displayed when the player is in the buffering state. The
* buffering spinner is not displayed by default.
* buffering spinner is not displayed by default.
*
*
*
Deprecated, u
se {@link #setShowBuffering(int)}
*
@deprecated U
se {@link #setShowBuffering(int)}
*
*
* @param showBuffering Whether the buffering icon is displayed
* @param showBuffering Whether the buffering icon is displayed
*/
*/
@Deprecated
@Deprecated
public
void
setShowBuffering
(
boolean
showBuffering
)
{
public
void
setShowBuffering
(
boolean
showBuffering
)
{
setShowBuffering
(
showBuffering
?
SHOW_BUFFERING_
ALWAYS
:
SHOW_BUFFERING_NEVER
);
setShowBuffering
(
showBuffering
?
SHOW_BUFFERING_
WHEN_PLAYING
:
SHOW_BUFFERING_NEVER
);
}
}
/**
/**
...
@@ -683,7 +683,7 @@ public class PlayerView extends FrameLayout {
...
@@ -683,7 +683,7 @@ public class PlayerView extends FrameLayout {
* <li>{@link #SHOW_BUFFERING_ALWAYS} displayed always when buffering
* <li>{@link #SHOW_BUFFERING_ALWAYS} displayed always when buffering
* <li>{@link #SHOW_BUFFERING_NEVER} not displayed at all
* <li>{@link #SHOW_BUFFERING_NEVER} not displayed at all
* <li>{@link #SHOW_BUFFERING_WHEN_PLAYING} displayed only when playing and buffering
* <li>{@link #SHOW_BUFFERING_WHEN_PLAYING} displayed only when playing and buffering
* </
p></ul
>
* </
ul></p
>
*
*
* @param showBuffering Buffering strategy that defines when the buffering icon is displayed
* @param showBuffering Buffering strategy that defines when the buffering icon is displayed
*/
*/
...
...
library/ui/src/main/res/values/attrs.xml
View file @
dbd25d58
...
@@ -52,9 +52,9 @@
...
@@ -52,9 +52,9 @@
<attr
name=
"hide_during_ads"
format=
"boolean"
/>
<attr
name=
"hide_during_ads"
format=
"boolean"
/>
<attr
name=
"auto_show"
format=
"boolean"
/>
<attr
name=
"auto_show"
format=
"boolean"
/>
<attr
name=
"show_buffering"
format=
"enum"
>
<attr
name=
"show_buffering"
format=
"enum"
>
<enum
name=
"
show_buffering_
never"
value=
"0"
/>
<enum
name=
"never"
value=
"0"
/>
<enum
name=
"
show_buffering_
always"
value=
"1"
/>
<enum
name=
"always"
value=
"1"
/>
<enum
name=
"
show_buffering_
when_playing"
value=
"2"
/>
<enum
name=
"when_playing"
value=
"2"
/>
</attr>
</attr>
<attr
name=
"keep_content_on_player_reset"
format=
"boolean"
/>
<attr
name=
"keep_content_on_player_reset"
format=
"boolean"
/>
<attr
name=
"resize_mode"
/>
<attr
name=
"resize_mode"
/>
...
...
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