Commit 6b1b9db6 authored by fallenstardust's avatar fallenstardust

fix

parent 12b2d252
...@@ -354,9 +354,8 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder { ...@@ -354,9 +354,8 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
stack.pop(); stack.pop();
if (stack.isEmpty()) { if (stack.isEmpty()) {
String quotedText = text.substring(start, i).trim(); String quotedText = text.substring(start, i).trim();
if (queryable(quotedText)) { // 使用 queryable 方法判断是否高亮 Log.d("cc quotedText", quotedText);
applySpan(spannableString, start, i, queryable(quotedText)? YGOUtil.c(R.color.holo_blue_bright) : Color.WHITE); applySpan(spannableString, start, i, queryable(quotedText)? YGOUtil.c(R.color.holo_blue_bright) : Color.WHITE);
}
currentQuoteType = QuoteType.NONE; currentQuoteType = QuoteType.NONE;
} else { } else {
stack.push(i); stack.push(i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment