Fix the span range for the text in front of the message preview
This commit is contained in:
parent
dae3b776ff
commit
77da312354
1 changed files with 2 additions and 2 deletions
|
@ -1779,7 +1779,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||
mFontSizes.getMessageListSender();
|
||||
|
||||
AbsoluteSizeSpan span = new AbsoluteSizeSpan(fontSize, true);
|
||||
str.setSpan(span, 0, beforePreviewText.length() + 1,
|
||||
str.setSpan(span, 0, beforePreviewText.length() + sigil.length(),
|
||||
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
|
||||
//TODO: make this part of the theme
|
||||
|
@ -1788,7 +1788,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||
Color.rgb(160, 160, 160);
|
||||
|
||||
// Set span (color) for preview message
|
||||
str.setSpan(new ForegroundColorSpan(color), beforePreviewText.length() + 1,
|
||||
str.setSpan(new ForegroundColorSpan(color), beforePreviewText.length() + sigil.length(),
|
||||
str.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
|
||||
Drawable statusHolder = null;
|
||||
|
|
Loading…
Reference in a new issue