pref: 优化收藏中被屏蔽贴的展示

This commit is contained in:
HuanChengFly 2020-08-20 21:36:05 +08:00
parent a34cd9d8d4
commit c6c1ac90ff
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ public class ThreadStoreAdapter extends CommonBaseAdapter<ThreadStoreBean.Thread
StringUtil.getAvatarUrl(threadStoreInfo.getAuthor().getUserPortrait())
);
SpannableStringBuilder builder = new SpannableStringBuilder();
if (!TextUtils.equals(threadStoreInfo.getCount(), "0")) {
if (!TextUtils.equals(threadStoreInfo.getCount(), "0") &&
!TextUtils.equals(threadStoreInfo.getPostNo(), "0")) {
builder.append(mContext.getString(R.string.tip_thread_store_update, threadStoreInfo.getPostNo()),
new RoundBackgroundColorSpan(mContext, alphaColor(ThemeUtils.getColorByAttr(mContext, R.attr.colorAccent), 30),
ThemeUtils.getColorByAttr(mContext, R.attr.colorAccent),