Skip to content

Commit

Permalink
Fix DefaultTimeBar invalidation
Browse files Browse the repository at this point in the history
Issue: #2871

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=157562792
  • Loading branch information
andrewlewis authored and ojw28 committed May 31, 2017
1 parent 7d4eaa7 commit bcd4bf0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,13 @@ public void setKeyCountIncrement(int count) {
public void setPosition(long position) {
this.position = position;
setContentDescription(getProgressText());
update();
}

@Override
public void setBufferedPosition(long bufferedPosition) {
this.bufferedPosition = bufferedPosition;
update();
}

@Override
Expand All @@ -235,13 +237,15 @@ public void setDuration(long duration) {
} else {
updateScrubberState();
}
update();
}

@Override
public void setAdBreakTimesMs(@Nullable long[] adBreakTimesMs, int adBreakCount) {
Assertions.checkArgument(adBreakCount == 0 || adBreakTimesMs != null);
this.adBreakCount = adBreakCount;
this.adBreakTimesMs = adBreakTimesMs;
update();
}

@Override
Expand Down

0 comments on commit bcd4bf0

Please sign in to comment.