make message text non-selectable. fixes #1606
This commit is contained in:
parent
aa472a0098
commit
042939e44d
|
@ -244,7 +244,6 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
||||||
viewHolder.messageBody.setText(text);
|
viewHolder.messageBody.setText(text);
|
||||||
viewHolder.messageBody.setTextColor(getMessageTextColor(darkBackground, false));
|
viewHolder.messageBody.setTextColor(getMessageTextColor(darkBackground, false));
|
||||||
viewHolder.messageBody.setTypeface(null, Typeface.ITALIC);
|
viewHolder.messageBody.setTypeface(null, Typeface.ITALIC);
|
||||||
viewHolder.messageBody.setTextIsSelectable(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayDecryptionFailed(ViewHolder viewHolder, boolean darkBackground) {
|
private void displayDecryptionFailed(ViewHolder viewHolder, boolean darkBackground) {
|
||||||
|
@ -257,7 +256,6 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
||||||
R.string.decryption_failed));
|
R.string.decryption_failed));
|
||||||
viewHolder.messageBody.setTextColor(getMessageTextColor(darkBackground, false));
|
viewHolder.messageBody.setTextColor(getMessageTextColor(darkBackground, false));
|
||||||
viewHolder.messageBody.setTypeface(null, Typeface.NORMAL);
|
viewHolder.messageBody.setTypeface(null, Typeface.NORMAL);
|
||||||
viewHolder.messageBody.setTextIsSelectable(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayHeartMessage(final ViewHolder viewHolder, final String body) {
|
private void displayHeartMessage(final ViewHolder viewHolder, final String body) {
|
||||||
|
@ -339,7 +337,6 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
||||||
viewHolder.messageBody.setLinkTextColor(this.getMessageTextColor(darkBackground, true));
|
viewHolder.messageBody.setLinkTextColor(this.getMessageTextColor(darkBackground, true));
|
||||||
viewHolder.messageBody.setHighlightColor(activity.getResources().getColor(darkBackground ? R.color.grey800 : R.color.grey500));
|
viewHolder.messageBody.setHighlightColor(activity.getResources().getColor(darkBackground ? R.color.grey800 : R.color.grey500));
|
||||||
viewHolder.messageBody.setTypeface(null, Typeface.NORMAL);
|
viewHolder.messageBody.setTypeface(null, Typeface.NORMAL);
|
||||||
viewHolder.messageBody.setTextIsSelectable(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayDownloadableMessage(ViewHolder viewHolder,
|
private void displayDownloadableMessage(ViewHolder viewHolder,
|
||||||
|
|
Loading…
Reference in a new issue