From 0fb4ba788f68b075c7f5997aa4dfd69d130c809b Mon Sep 17 00:00:00 2001 From: ibaker Date: Mon, 11 May 2020 17:19:03 +0100 Subject: [PATCH] Switch SubtitleWebView to use single-quotes in generated HTML The current state is inconsistent with SpannedToHtmlConverter, it seems they might as well agree on quoting strategy. PiperOrigin-RevId: 310926683 --- .../google/android/exoplayer2/ui/SubtitleWebView.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/SubtitleWebView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/SubtitleWebView.java index 8778ca996c..c88de9ba4a 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/SubtitleWebView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/SubtitleWebView.java @@ -127,7 +127,7 @@ import java.util.List; StringBuilder html = new StringBuilder(); html.append( Util.formatInvariant( - "
", HtmlUtils.toCssRgba(style.foregroundColor), convertTextSizeToCss(defaultTextSizeType, defaultTextSize))); @@ -222,7 +222,7 @@ import java.util.List; html.append( Util.formatInvariant( - "
", positionProperty, positionPercent, lineProperty, @@ -245,7 +245,7 @@ import java.util.List; windowCssColor, horizontalTranslatePercent, verticalTranslatePercent)) - .append(Util.formatInvariant("", backgroundColorCss)) + .append(Util.formatInvariant("", backgroundColorCss)) .append( SpannedToHtmlConverter.convert( cue.text, getContext().getResources().getDisplayMetrics().density))