diff --git a/res/values/strings.xml b/res/values/strings.xml index 5e867a6dd..dbf97d9af 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -191,6 +191,7 @@ Processing image, can take up to a few seconds depending on the size of the file Read Delivered + Sent Resend An error occurs when opening this file. Infos @@ -273,6 +274,7 @@ Warning: service is not ready Error + File transfer error Cannot build destination address from %s Unknown error Call declined diff --git a/src/android/org/linphone/chat/ChatEventsAdapter.java b/src/android/org/linphone/chat/ChatEventsAdapter.java index 5aa72c157..da0b2e6f1 100644 --- a/src/android/org/linphone/chat/ChatEventsAdapter.java +++ b/src/android/org/linphone/chat/ChatEventsAdapter.java @@ -192,7 +192,13 @@ public class ChatEventsAdapter extends ListSelectionAdapter implements ChatMessa } else if (status == ChatMessage.State.NotDelivered) { holder.imdmLayout.setVisibility(View.VISIBLE); holder.imdmIcon.setImageResource(R.drawable.chat_error); - holder.imdmLabel.setText(R.string.resend); + holder.imdmLabel.setText(R.string.error); + holder.imdmLabel.setTextColor(mContext.getResources().getColor(R.color.colorI)); + // TODO resend + } else if (status == ChatMessage.State.FileTransferError) { + holder.imdmLayout.setVisibility(View.VISIBLE); + holder.imdmIcon.setImageResource(R.drawable.chat_error); + holder.imdmLabel.setText(R.string.file_transfer_error); holder.imdmLabel.setTextColor(mContext.getResources().getColor(R.color.colorI)); }