Skip to content

Commit

Permalink
google#4304 - Adjustments after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
szaboa committed Jul 27, 2018
1 parent 1f12f22 commit dbd25d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -666,13 +666,13 @@ public void setKeepContentOnPlayerReset(boolean keepContentOnPlayerReset) {
* Sets whether a buffering spinner is displayed when the player is in the buffering state. The
* buffering spinner is not displayed by default.
*
* Deprecated, use {@link #setShowBuffering(int)}
* @deprecated Use {@link #setShowBuffering(int)}
*
* @param showBuffering Whether the buffering icon is displayed
*/
@Deprecated
public void setShowBuffering(boolean showBuffering) {
setShowBuffering(showBuffering ? SHOW_BUFFERING_ALWAYS : SHOW_BUFFERING_NEVER);
setShowBuffering(showBuffering ? SHOW_BUFFERING_WHEN_PLAYING : SHOW_BUFFERING_NEVER);
}

/**
Expand All @@ -683,7 +683,7 @@ public void setShowBuffering(boolean showBuffering) {
* <li>{@link #SHOW_BUFFERING_ALWAYS} displayed always when buffering
* <li>{@link #SHOW_BUFFERING_NEVER} not displayed at all
* <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
*/
Expand Down
6 changes: 3 additions & 3 deletions library/ui/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
<attr name="hide_during_ads" format="boolean"/>
<attr name="auto_show" format="boolean"/>
<attr name="show_buffering" format="enum">
<enum name="show_buffering_never" value="0"/>
<enum name="show_buffering_always" value="1"/>
<enum name="show_buffering_when_playing" value="2"/>
<enum name="never" value="0"/>
<enum name="always" value="1"/>
<enum name="when_playing" value="2"/>
</attr>
<attr name="keep_content_on_player_reset" format="boolean"/>
<attr name="resize_mode"/>
Expand Down

0 comments on commit dbd25d5

Please sign in to comment.