Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ce2967f authored by Lajos Molnar's avatar Lajos Molnar Committed by Android Git Automerger
Browse files

am 566d6b65: Merge "WebVttRenderer: allow BOM at beginning of a WebVTT file." into klp-dev

* commit '566d6b65':
  WebVttRenderer: allow BOM at beginning of a WebVTT file.
parents 36055c33 566d6b65
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -690,6 +690,9 @@ class WebVttParser {
    final private Phase mParseStart = new Phase() { // 5-9
        @Override
        public void parse(String line) {
            if (line.startsWith("\ufeff")) {
                line = line.substring(1);
            }
            if (!line.equals("WEBVTT") &&
                    !line.startsWith("WEBVTT ") &&
                    !line.startsWith("WEBVTT\t")) {