Commit 8a7d68da by Oliver Woodman

Don't render empty cues

parent ebe9ae6b
......@@ -135,6 +135,11 @@ import android.util.Log;
*/
public void draw(Cue cue, CaptionStyleCompat style, float fontScale, Canvas canvas,
int cueBoxLeft, int cueBoxTop, int cueBoxRight, int cueBoxBottom) {
if (TextUtils.isEmpty(cue.text)) {
// Nothing to draw;
return;
}
if (TextUtils.equals(cueText, cue.text)
&& cuePosition == cue.position
&& Util.areEqual(cueAlignment, cue.alignment)
......
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