Pending indicator was not cleared on recycled views.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-03-09 13:14:39 -07:00
parent 4e87513867
commit 9f9293cd61

View File

@ -280,7 +280,7 @@ public class ConversationItem extends LinearLayout {
private void setStatusIcons(MessageRecord messageRecord) { private void setStatusIcons(MessageRecord messageRecord) {
failedImage.setVisibility(messageRecord.isFailed() ? View.VISIBLE : View.GONE); failedImage.setVisibility(messageRecord.isFailed() ? View.VISIBLE : View.GONE);
// pendingIndicator.setVisibility(View.GONE); if (messageRecord.isOutgoing()) pendingIndicator.setVisibility(View.GONE);
if (messageRecord.isOutgoing()) indicatorText.setVisibility(View.GONE); if (messageRecord.isOutgoing()) indicatorText.setVisibility(View.GONE);
secureImage.setVisibility(messageRecord.isSecure() ? View.VISIBLE : View.GONE); secureImage.setVisibility(messageRecord.isSecure() ? View.VISIBLE : View.GONE);