Commit 1aad2908 authored by Grigory Fedorov's avatar Grigory Fedorov

ChatMessageAdapter: icon for not delivered message is not drawn

(because not all clients support delivered reports)
parent 9f7fa554
...@@ -233,7 +233,11 @@ public class ChatMessageAdapter extends BaseAdapter implements UpdatableAdapter ...@@ -233,7 +233,11 @@ public class ChatMessageAdapter extends BaseAdapter implements UpdatableAdapter
append(builder, time, new TextAppearanceSpan(activity, R.style.ChatHeader_Time)); append(builder, time, new TextAppearanceSpan(activity, R.style.ChatHeader_Time));
append(builder, " ", new TextAppearanceSpan(activity, R.style.ChatHeader)); append(builder, " ", new TextAppearanceSpan(activity, R.style.ChatHeader));
if (!incoming) { if (!incoming) {
append(builder, " ", new ImageSpan(activity, messageIcon)); ImageSpan imageSpan = new ImageSpan(activity, messageIcon);
if (messageIcon == R.drawable.ic_query_builder_white_18dp) {
imageSpan.getDrawable().setAlpha(0);
}
append(builder, " ", imageSpan);
} }
} else { } else {
text = Emoticons.newSpannable(action.getText(activity, resource, text.toString())); text = Emoticons.newSpannable(action.getText(activity, resource, text.toString()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment