mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +08:00
Remove Java 8 usage from release
This commit is contained in:
parent
4cd57e0963
commit
27f05c412d
@ -220,8 +220,6 @@ public class DefaultTimeBar extends View implements TimeBar {
|
||||
private @Nullable boolean[] playedAdGroups;
|
||||
|
||||
/** 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) {
|
||||
super(context, attrs);
|
||||
seekBounds = new Rect();
|
||||
@ -307,7 +305,12 @@ public class DefaultTimeBar extends View implements TimeBar {
|
||||
}
|
||||
formatBuilder = new StringBuilder();
|
||||
formatter = new Formatter(formatBuilder, Locale.getDefault());
|
||||
stopScrubbingRunnable = () -> stopScrubbing(/* canceled= */ false);
|
||||
stopScrubbingRunnable = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
stopScrubbing(false);
|
||||
}
|
||||
};
|
||||
if (scrubberDrawable != null) {
|
||||
scrubberPadding = (scrubberDrawable.getMinimumWidth() + 1) / 2;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user