mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
parent
d0e852f19f
commit
d4887e11be
@ -338,7 +338,7 @@ public class ConversationItem extends LinearLayout
|
||||
private void setFailedStatusIcons() {
|
||||
statusManager.displayFailed();
|
||||
dateText.setText(R.string.ConversationItem_error_not_delivered);
|
||||
if (indicatorText != null) {
|
||||
if (messageRecord.isOutgoing()) {
|
||||
indicatorText.setText(R.string.ConversationItem_click_for_details);
|
||||
indicatorText.setVisibility(View.VISIBLE);
|
||||
}
|
||||
@ -351,7 +351,7 @@ public class ConversationItem extends LinearLayout
|
||||
}
|
||||
|
||||
private void setMinimumWidth() {
|
||||
if (indicatorText != null && indicatorText.getVisibility() == View.VISIBLE && indicatorText.getText() != null) {
|
||||
if (indicatorText.getVisibility() == View.VISIBLE && indicatorText.getText() != null) {
|
||||
final float density = getResources().getDisplayMetrics().density;
|
||||
bodyBubble.setMinimumWidth(indicatorText.getText().length() * (int) (6.5 * density) + (int) (22.0 * density));
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user