From 5da6eb3ad560f675bc5f87312dc8261a655567d1 Mon Sep 17 00:00:00 2001 From: Pierfrancesco Soffritti Date: Thu, 14 Apr 2016 15:49:47 +0200 Subject: [PATCH] changed setInfoText argument from String to CharSequence to allow more freedom. eg: use a Spannable as message --- .../co/mobiwise/materialintro/view/MaterialIntroView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/materialintro/src/main/java/co/mobiwise/materialintro/view/MaterialIntroView.java b/materialintro/src/main/java/co/mobiwise/materialintro/view/MaterialIntroView.java index fa8008b..878e0f9 100644 --- a/materialintro/src/main/java/co/mobiwise/materialintro/view/MaterialIntroView.java +++ b/materialintro/src/main/java/co/mobiwise/materialintro/view/MaterialIntroView.java @@ -561,7 +561,7 @@ private void setColorTextViewInfo(int colorTextViewInfo) { textViewInfo.setTextColor(this.colorTextViewInfo); } - private void setTextViewInfo(String textViewInfo) { + private void setTextViewInfo(CharSequence textViewInfo) { this.textViewInfo.setText(textViewInfo); } @@ -664,7 +664,7 @@ public Builder setTextColor(int textColor) { return this; } - public Builder setInfoText(String infoText) { + public Builder setInfoText(CharSequence infoText) { materialIntroView.enableInfoDialog(true); materialIntroView.setTextViewInfo(infoText); return this;