don't hide indicator on merged messages

This commit is contained in:
kosyak 2023-08-15 01:22:10 +02:00
parent a2a943c36a
commit b26adc84b0

View file

@ -998,16 +998,16 @@ public class MessageAdapter extends ArrayAdapter<Message> {
if (viewHolder.contact_picture != null) if (viewHolder.contact_picture != null)
viewHolder.contact_picture.setVisibility(mergeableWithNext ? View.INVISIBLE : View.VISIBLE); viewHolder.contact_picture.setVisibility(mergeableWithNext ? View.INVISIBLE : View.VISIBLE);
if (viewHolder.edit_indicator != null) // if (viewHolder.edit_indicator != null)
viewHolder.edit_indicator.setVisibility(mergeableWithNext ? View.GONE : viewHolder.edit_indicator.getVisibility()); // viewHolder.edit_indicator.setVisibility(mergeableWithNext ? View.GONE : viewHolder.edit_indicator.getVisibility());
if (viewHolder.encryption != null) // if (viewHolder.encryption != null)
viewHolder.encryption.setVisibility(mergeableWithNext ? View.GONE : viewHolder.encryption.getVisibility()); // viewHolder.encryption.setVisibility(mergeableWithNext ? View.GONE : viewHolder.encryption.getVisibility());
if (viewHolder.indicator != null) // if (viewHolder.indicator != null)
viewHolder.indicator.setVisibility(mergeableWithNext ? View.GONE : viewHolder.indicator.getVisibility()); // viewHolder.indicator.setVisibility(mergeableWithNext ? View.GONE : viewHolder.indicator.getVisibility());
// if (viewHolder.time != null) // if (viewHolder.time != null)
// viewHolder.time.setVisibility(mergeableWithNext ? View.GONE : View.VISIBLE); // viewHolder.time.setVisibility(mergeableWithNext ? View.GONE : View.VISIBLE);
if (viewHolder.indicatorReceived != null) // if (viewHolder.indicatorReceived != null)
viewHolder.indicatorReceived.setVisibility(mergeableWithNext ? View.GONE : viewHolder.indicatorReceived.getVisibility()); // viewHolder.indicatorReceived.setVisibility(mergeableWithNext ? View.GONE : viewHolder.indicatorReceived.getVisibility());
if (mergeableWithPrev && mergeableWithNext) { if (mergeableWithPrev && mergeableWithNext) {
view.setPadding(view.getPaddingLeft(), 0, view.getPaddingRight(), 0); view.setPadding(view.getPaddingLeft(), 0, view.getPaddingRight(), 0);