show compound messages

This commit is contained in:
B. Petersen
2018-10-11 18:38:55 +02:00
parent 02ea677a3c
commit b4c1f214a0
@@ -376,14 +376,20 @@ public class ConversationItem extends LinearLayout
bodyText.setFocusable(false);
bodyText.setTextSize(TypedValue.COMPLEX_UNIT_SP, TextSecurePreferences.getMessageBodyTextSize(context));
String text = messageRecord.getText();
if (messageRecord.isSetupMessage()) {
bodyText.setText(context.getString(R.string.autocrypt__asm_tap_body));
bodyText.setText(context.getString(R.string.autocrypt__asm_tap_body));
bodyText.setVisibility(View.VISIBLE);
}
else if (text.isEmpty()) {
bodyText.setVisibility(View.GONE);
}
else {
bodyText.setText(linkifyMessageBody(new SpannableString(messageRecord.getText()), batchSelected.isEmpty()));
bodyText.setText(linkifyMessageBody(new SpannableString(text), batchSelected.isEmpty()));
bodyText.setVisibility(View.VISIBLE);
}
bodyText.setVisibility(View.VISIBLE);
}
private void setMediaAttributes(@NonNull DcMsg messageRecord,