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
4f37d28e
authored
Dec 03, 2019
by
andrewlewis
Committed by
bachinger
Dec 04, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix typo in DefaultTimeBar javadoc
PiperOrigin-RevId: 283515315
parent
76a170c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
28 deletions
library/ui/src/main/java/com/google/android/exoplayer2/ui/DefaultTimeBar.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/DefaultTimeBar.java
View file @
4f37d28e
...
@@ -126,35 +126,21 @@ import java.util.concurrent.CopyOnWriteArraySet;
...
@@ -126,35 +126,21 @@ import java.util.concurrent.CopyOnWriteArraySet;
*/
*/
public
class
DefaultTimeBar
extends
View
implements
TimeBar
{
public
class
DefaultTimeBar
extends
View
implements
TimeBar
{
/**
/** Default height for the time bar, in dp. */
* Default height for the time bar, in dp.
*/
public
static
final
int
DEFAULT_BAR_HEIGHT_DP
=
4
;
public
static
final
int
DEFAULT_BAR_HEIGHT_DP
=
4
;
/**
/** Default height for the touch target, in dp. */
* Default height for the touch target, in dp.
*/
public
static
final
int
DEFAULT_TOUCH_TARGET_HEIGHT_DP
=
26
;
public
static
final
int
DEFAULT_TOUCH_TARGET_HEIGHT_DP
=
26
;
/**
/** Default width for ad markers, in dp. */
* Default width for ad markers, in dp.
*/
public
static
final
int
DEFAULT_AD_MARKER_WIDTH_DP
=
4
;
public
static
final
int
DEFAULT_AD_MARKER_WIDTH_DP
=
4
;
/**
/** Default diameter for the scrubber when enabled, in dp. */
* Default diameter for the scrubber when enabled, in dp.
*/
public
static
final
int
DEFAULT_SCRUBBER_ENABLED_SIZE_DP
=
12
;
public
static
final
int
DEFAULT_SCRUBBER_ENABLED_SIZE_DP
=
12
;
/**
/** Default diameter for the scrubber when disabled, in dp. */
* Default diameter for the scrubber when disabled, in dp.
*/
public
static
final
int
DEFAULT_SCRUBBER_DISABLED_SIZE_DP
=
0
;
public
static
final
int
DEFAULT_SCRUBBER_DISABLED_SIZE_DP
=
0
;
/**
/** Default diameter for the scrubber when dragged, in dp. */
* Default diameter for the scrubber when dragged, in dp.
*/
public
static
final
int
DEFAULT_SCRUBBER_DRAGGED_SIZE_DP
=
16
;
public
static
final
int
DEFAULT_SCRUBBER_DRAGGED_SIZE_DP
=
16
;
/**
* Default color for the played portion of the time bar.
*/
public
static
final
int
DEFAULT_PLAYED_COLOR
=
0xFFFFFFFF
;
/** Default color for the played portion of the time bar. */
/** Default color for the played portion of the time bar. */
public
static
final
int
DEFAULT_PLAYED_COLOR
=
0xFFFFFFFF
;
/** Default color for the unplayed portion of the time bar. */
public
static
final
int
DEFAULT_UNPLAYED_COLOR
=
0x33FFFFFF
;
public
static
final
int
DEFAULT_UNPLAYED_COLOR
=
0x33FFFFFF
;
/** Default color for the buffered portion of the time bar. */
/** Default color for the buffered portion of the time bar. */
public
static
final
int
DEFAULT_BUFFERED_COLOR
=
0xCCFFFFFF
;
public
static
final
int
DEFAULT_BUFFERED_COLOR
=
0xCCFFFFFF
;
...
@@ -165,19 +151,16 @@ public class DefaultTimeBar extends View implements TimeBar {
...
@@ -165,19 +151,16 @@ public class DefaultTimeBar extends View implements TimeBar {
/** Default color for played ad markers. */
/** Default color for played ad markers. */
public
static
final
int
DEFAULT_PLAYED_AD_MARKER_COLOR
=
0x33FFFF00
;
public
static
final
int
DEFAULT_PLAYED_AD_MARKER_COLOR
=
0x33FFFF00
;
/**
/** The threshold in dps above the bar at which touch events trigger fine scrub mode. */
* The threshold in dps above the bar at which touch events trigger fine scrub mode.
*/
private
static
final
int
FINE_SCRUB_Y_THRESHOLD_DP
=
-
50
;
private
static
final
int
FINE_SCRUB_Y_THRESHOLD_DP
=
-
50
;
/**
/** The ratio by which times are reduced in fine scrub mode. */
* The ratio by which times are reduced in fine scrub mode.
*/
private
static
final
int
FINE_SCRUB_RATIO
=
3
;
private
static
final
int
FINE_SCRUB_RATIO
=
3
;
/**
/**
* The time after which the scrubbing listener is notified that scrubbing has stopped after
* The time after which the scrubbing listener is notified that scrubbing has stopped after
* performing an incremental scrub using key input.
* performing an incremental scrub using key input.
*/
*/
private
static
final
long
STOP_SCRUBBING_TIMEOUT_MS
=
1000
;
private
static
final
long
STOP_SCRUBBING_TIMEOUT_MS
=
1000
;
private
static
final
int
DEFAULT_INCREMENT_COUNT
=
20
;
private
static
final
int
DEFAULT_INCREMENT_COUNT
=
20
;
/**
/**
...
...
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