mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Update badge copy with new strings.
This commit is contained in:
committed by
Greyson Parrelli
parent
755ec672c0
commit
6c7d837964
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user