|
|
@ -19,6 +19,8 @@ package org.thoughtcrime.securesms.database.model;
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Context;
|
|
|
|
import android.text.Spannable;
|
|
|
|
import android.text.Spannable;
|
|
|
|
import android.text.SpannableString;
|
|
|
|
import android.text.SpannableString;
|
|
|
|
|
|
|
|
import android.text.style.ForegroundColorSpan;
|
|
|
|
|
|
|
|
import android.text.style.RelativeSizeSpan;
|
|
|
|
import android.text.style.StyleSpan;
|
|
|
|
import android.text.style.StyleSpan;
|
|
|
|
import android.text.style.TextAppearanceSpan;
|
|
|
|
import android.text.style.TextAppearanceSpan;
|
|
|
|
|
|
|
|
|
|
|
@ -177,7 +179,7 @@ public abstract class MessageRecord extends DisplayRecord {
|
|
|
|
|
|
|
|
|
|
|
|
protected SpannableString emphasisAdded(String sequence) {
|
|
|
|
protected SpannableString emphasisAdded(String sequence) {
|
|
|
|
SpannableString spannable = new SpannableString(sequence);
|
|
|
|
SpannableString spannable = new SpannableString(sequence);
|
|
|
|
spannable.setSpan(new TextAppearanceSpan(context, android.R.style.TextAppearance_Small), 0, sequence.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
|
|
|
spannable.setSpan(new RelativeSizeSpan(0.9f), 0, sequence.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
|
|
|
spannable.setSpan(new StyleSpan(android.graphics.Typeface.ITALIC), 0, sequence.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
|
|
|
spannable.setSpan(new StyleSpan(android.graphics.Typeface.ITALIC), 0, sequence.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
|
|
|
|
|
|
|
|
|
|
|
return spannable;
|
|
|
|
return spannable;
|
|
|
|