mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 09:42:17 -05:00
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.setTextColor(getMessageTextColor(darkBackground, false));
|
||||
viewHolder.messageBody.setTypeface(null, Typeface.ITALIC);
|
||||
viewHolder.messageBody.setTextIsSelectable(false);
|
||||
}
|
||||
|
||||
private void displayDecryptionFailed(ViewHolder viewHolder, boolean darkBackground) {
|
||||
@ -257,7 +256,6 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
||||
R.string.decryption_failed));
|
||||
viewHolder.messageBody.setTextColor(getMessageTextColor(darkBackground, false));
|
||||
viewHolder.messageBody.setTypeface(null, Typeface.NORMAL);
|
||||
viewHolder.messageBody.setTextIsSelectable(false);
|
||||
}
|
||||
|
||||
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.setHighlightColor(activity.getResources().getColor(darkBackground ? R.color.grey800 : R.color.grey500));
|
||||
viewHolder.messageBody.setTypeface(null, Typeface.NORMAL);
|
||||
viewHolder.messageBody.setTextIsSelectable(true);
|
||||
}
|
||||
|
||||
private void displayDownloadableMessage(ViewHolder viewHolder,
|
||||
|
Loading…
Reference in New Issue
Block a user