Commit 27f05c41 by Oliver Woodman

Remove Java 8 usage from release

parent 4cd57e09
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment