|
|
@ -391,8 +391,10 @@ public class FixedTextView extends AppCompatTextView {
|
|
|
|
if (selected instanceof Spanned) {
|
|
|
|
if (selected instanceof Spanned) {
|
|
|
|
String html = HtmlHelper.toHtml((Spanned) selected, context);
|
|
|
|
String html = HtmlHelper.toHtml((Spanned) selected, context);
|
|
|
|
cbm.setPrimaryClip(ClipData.newHtmlText(context.getString(R.string.app_name), selected, html));
|
|
|
|
cbm.setPrimaryClip(ClipData.newHtmlText(context.getString(R.string.app_name), selected, html));
|
|
|
|
if (getText() instanceof Spannable)
|
|
|
|
if (getText() instanceof Spannable) {
|
|
|
|
Selection.removeSelection((Spannable) getText());
|
|
|
|
Selection.removeSelection((Spannable) getText());
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
} else
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|