春节主题:礼物飘屏。
This commit is contained in:
@@ -789,7 +789,7 @@ public abstract class BaseMvpActivity<P extends IPresenter, VDB extends ViewData
|
||||
int userNameStart = fullText.indexOf(redBean.getNickname());
|
||||
if (userNameStart >= 0) {
|
||||
builder.setSpan(
|
||||
new ForegroundColorSpan(ContextCompat.getColor(this, UtilConfig.getAttrColor(this,R.attr.app_color_colorPrimary))),
|
||||
new ForegroundColorSpan(UtilConfig.getAttrColor(this,R.attr.app_color_colorPrimary)),
|
||||
userNameStart,
|
||||
userNameStart + redBean.getNickname().length(),
|
||||
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE
|
||||
@@ -800,7 +800,7 @@ public abstract class BaseMvpActivity<P extends IPresenter, VDB extends ViewData
|
||||
int roomNameStart = fullText.indexOf(redBean.getRoom_name());
|
||||
if (roomNameStart >= 0) {
|
||||
builder.setSpan(
|
||||
new ForegroundColorSpan(ContextCompat.getColor(this, UtilConfig.getAttrColor(this,R.attr.app_color_colorPrimary))),
|
||||
new ForegroundColorSpan(UtilConfig.getAttrColor(this,R.attr.app_color_colorPrimary)),
|
||||
roomNameStart,
|
||||
roomNameStart + redBean.getRoom_name().length(),
|
||||
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE
|
||||
|
||||
Reference in New Issue
Block a user