Skip to content

Commit

Permalink
Merge pull request #5147 from zsmatyas:dev-v2
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 224114911
  • Loading branch information
ojw28 committed Dec 5, 2018
2 parents 22a8aa3 + d1e49f2 commit 0d79208
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,14 @@ private void setCaptionMode(int captionMode) {
int oldCaptionMode = this.captionMode;
this.captionMode = captionMode;

if (captionMode == CC_MODE_PAINT_ON) {
// Switching to paint-on mode should have no effect except to select the mode.
for (int i = 0; i < cueBuilders.size(); i++) {
cueBuilders.get(i).setCaptionMode(captionMode);
}
return;
}

// Clear the working memory.
resetCueBuilders();
if (oldCaptionMode == CC_MODE_PAINT_ON || captionMode == CC_MODE_ROLL_UP
Expand Down Expand Up @@ -664,6 +672,10 @@ public void reset(int captionMode) {
tabOffset = 0;
}

public void setCaptionMode(int captionMode) {
this.captionMode = captionMode;
}

public void setCaptionRowCount(int captionRowCount) {
this.captionRowCount = captionRowCount;
}
Expand Down

0 comments on commit 0d79208

Please sign in to comment.