Disable text selection in SubtitleWebView

PiperOrigin-RevId: 298605366
This commit is contained in:
ibaker 2020-03-03 15:52:46 +00:00 committed by Oliver Woodman
parent 58f42e9f8b
commit 63256a48d4

View File

@ -156,7 +156,7 @@ import java.util.List;
cueText.append(SpannedToHtmlConverter.convert(cues.get(i).text));
}
webView.loadData(
"<html><body><p style=\"color:red;font-size:20px;height:150px\">"
"<html><body><p style=\"color:red;font-size:20px;height:150px;-webkit-user-select:none;\">"
+ cueText
+ "</p></body></html>",
"text/html",