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
27f05c41
authored
Aug 06, 2018
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove Java 8 usage from release
parent
4cd57e09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 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 @
27f05c41
...
@@ -220,8 +220,6 @@ public class DefaultTimeBar extends View implements TimeBar {
...
@@ -220,8 +220,6 @@ public class DefaultTimeBar extends View implements TimeBar {
private
@Nullable
boolean
[]
playedAdGroups
;
private
@Nullable
boolean
[]
playedAdGroups
;
/** Creates a new time bar. */
/** Creates a new time bar. */
// Suppress warnings due to usage of View methods in the constructor.
@SuppressWarnings
(
"nullness:method.invocation.invalid"
)
public
DefaultTimeBar
(
Context
context
,
AttributeSet
attrs
)
{
public
DefaultTimeBar
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
super
(
context
,
attrs
);
seekBounds
=
new
Rect
();
seekBounds
=
new
Rect
();
...
@@ -307,7 +305,12 @@ public class DefaultTimeBar extends View implements TimeBar {
...
@@ -307,7 +305,12 @@ public class DefaultTimeBar extends View implements TimeBar {
}
}
formatBuilder
=
new
StringBuilder
();
formatBuilder
=
new
StringBuilder
();
formatter
=
new
Formatter
(
formatBuilder
,
Locale
.
getDefault
());
formatter
=
new
Formatter
(
formatBuilder
,
Locale
.
getDefault
());
stopScrubbingRunnable
=
()
->
stopScrubbing
(
/* canceled= */
false
);
stopScrubbingRunnable
=
new
Runnable
()
{
@Override
public
void
run
()
{
stopScrubbing
(
false
);
}
};
if
(
scrubberDrawable
!=
null
)
{
if
(
scrubberDrawable
!=
null
)
{
scrubberPadding
=
(
scrubberDrawable
.
getMinimumWidth
()
+
1
)
/
2
;
scrubberPadding
=
(
scrubberDrawable
.
getMinimumWidth
()
+
1
)
/
2
;
}
else
{
}
else
{
...
...
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