Skip to content

Commit

Permalink
Support for AttributedStringBuilder.append(AttributedCharSequence)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jun 15, 2017
1 parent 412adbb commit d36ee25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ public AttributedStyle style() {
return current;
}

public AttributedStringBuilder append(AttributedString str) {
public AttributedStringBuilder append(AttributedCharSequence str) {
return append(str, 0, str.length());
}

public AttributedStringBuilder append(AttributedString str, int start, int end) {
public AttributedStringBuilder append(AttributedCharSequence str, int start, int end) {
ensureCapacity(length + end - start);
for (int i = start; i < end; i++) {
char c = str.charAt(i);
Expand Down

0 comments on commit d36ee25

Please sign in to comment.