Skip to content

Commit 5da6eb3

Browse files
changed setInfoText argument from String to CharSequence to allow more freedom. eg: use a Spannable as message
1 parent 19febd4 commit 5da6eb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

materialintro/src/main/java/co/mobiwise/materialintro/view/MaterialIntroView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ private void setColorTextViewInfo(int colorTextViewInfo) {
561561
textViewInfo.setTextColor(this.colorTextViewInfo);
562562
}
563563

564-
private void setTextViewInfo(String textViewInfo) {
564+
private void setTextViewInfo(CharSequence textViewInfo) {
565565
this.textViewInfo.setText(textViewInfo);
566566
}
567567

@@ -664,7 +664,7 @@ public Builder setTextColor(int textColor) {
664664
return this;
665665
}
666666

667-
public Builder setInfoText(String infoText) {
667+
public Builder setInfoText(CharSequence infoText) {
668668
materialIntroView.enableInfoDialog(true);
669669
materialIntroView.setTextViewInfo(infoText);
670670
return this;

0 commit comments

Comments
 (0)