Update badge copy with new strings.

This commit is contained in:
Alex Hart
2021-10-28 15:49:25 -03:00
committed by Greyson Parrelli
parent 755ec672c0
commit 6c7d837964
21 changed files with 273 additions and 43 deletions

View File

@@ -136,6 +136,21 @@ public final class SpanUtil {
return clickSubstring(learnMore, learnMore, onLearnMoreClicked, color);
}
public static CharSequence readMore(@NonNull Context context,
@ColorInt int color,
@NonNull View.OnClickListener onLearnMoreClicked)
{
String readMore = context.getString(R.string.SpanUtil__read_more);
return clickSubstring(readMore, readMore, onLearnMoreClicked, color);
}
public static CharSequence clickable(@NonNull CharSequence text,
@ColorInt int color,
@NonNull View.OnClickListener onLearnMoreClicked)
{
return clickSubstring(text, text, onLearnMoreClicked, color);
}
/**
* Takes two resources:
* - one resource that has a single string placeholder