Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
MMS delivery reports and read reports are displayed as sent/read whil…
Browse files Browse the repository at this point in the history
…e the message is still being sent

Bug 5533745
This is a regression from Eclair. We're showing icons that indicate a message
has been delivered and/or read, when that might not be the case. With this
change, we do what we did in Eclair: show an icon that indicates there
might be more information available under the details menu.

Change-Id: I56a7677b3e0e675eee8c0adcd53f89681d50a8a8
  • Loading branch information
Tom Taylor committed Nov 18, 2011
1 parent 0ffd514 commit 21a30a3
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/com/android/mms/ui/MessageListItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -590,20 +590,30 @@ private void drawRightStatusIndicator(MessageItem msgItem) {
mLockedIndicator.setVisibility(View.GONE);
}

// Delivery icon
// Delivery icon - we can show a failed icon for both sms and mms, but for an actual
// delivery, we only show the icon for sms. We don't have the information here in mms to
// know whether the message has been delivered. For mms, msgItem.mDeliveryStatus set
// to MessageItem.DeliveryStatus.RECEIVED simply means the setting requesting a
// delivery report was turned on when the message was sent. Yes, it's confusing!
if ((msgItem.isOutgoingMessage() && msgItem.isFailedMessage()) ||
msgItem.mDeliveryStatus == MessageItem.DeliveryStatus.FAILED) {
mDeliveredIndicator.setImageResource(R.drawable.ic_list_alert_sms_failed);
mDeliveredIndicator.setVisibility(View.VISIBLE);
} else if (msgItem.mDeliveryStatus == MessageItem.DeliveryStatus.RECEIVED) {
} else if (msgItem.isSms() &&
msgItem.mDeliveryStatus == MessageItem.DeliveryStatus.RECEIVED) {
mDeliveredIndicator.setImageResource(R.drawable.ic_sms_mms_delivered);
mDeliveredIndicator.setVisibility(View.VISIBLE);
} else {
mDeliveredIndicator.setVisibility(View.GONE);
}

// Message details icon
if (msgItem.mDeliveryStatus == MessageItem.DeliveryStatus.INFO || msgItem.mReadReport) {
// Message details icon - this icon is shown both for sms and mms messages. For mms,
// we show the icon if the read report or delivery report setting was set when the
// message was sent. Showing the icon tells the user there's more information
// by selecting the "View report" menu.
if (msgItem.mDeliveryStatus == MessageItem.DeliveryStatus.INFO || msgItem.mReadReport
|| (msgItem.isMms() &&
msgItem.mDeliveryStatus == MessageItem.DeliveryStatus.RECEIVED)) {
mDetailsIndicator.setImageResource(R.drawable.ic_sms_mms_details);
mDetailsIndicator.setVisibility(View.VISIBLE);
} else {
Expand Down

0 comments on commit 21a30a3

Please sign in to comment.