Skip to content

Commit

Permalink
Merge pull request amlcurran#387 from amlcurran/fix-377
Browse files Browse the repository at this point in the history
Fix amlcurran#377, where changing the text wouldn't update the ShowcaseView
  • Loading branch information
amlcurran committed Apr 6, 2016
2 parents 770f779 + e262db2 commit f711b5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,13 @@ private void hideImmediate() {
@Override
public void setContentTitle(CharSequence title) {
textDrawer.setContentTitle(title);
invalidate();
}

@Override
public void setContentText(CharSequence text) {
textDrawer.setContentText(text);
invalidate();
}

private void setScaleMultiplier(float scaleMultiplier) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public void setContentText(CharSequence details) {
SpannableString ssbDetail = new SpannableString(details);
ssbDetail.setSpan(textSpan, 0, ssbDetail.length(), 0);
textString = ssbDetail;
hasRecalculated = true;
}
}

Expand All @@ -120,6 +121,7 @@ public void setContentTitle(CharSequence title) {
SpannableString ssbTitle = new SpannableString(title);
ssbTitle.setSpan(titleSpan, 0, ssbTitle.length(), 0);
titleString = ssbTitle;
hasRecalculated = true;
}
}

Expand Down

0 comments on commit f711b5d

Please sign in to comment.