diff options
author | wangqi <wangqi@google.com> | 2018-04-02 14:32:09 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-04-02 14:47:12 -0700 |
commit | 9a625f8919189fd65de023bd15de5c64f7762b27 (patch) | |
tree | 0be28f62ae1118802701124dd24799e474f1429d /java/com/android/incallui/rtt/impl/RttChatMessageViewHolder.java | |
parent | a462370fa5d9517c6dc0dee92a10e4231b46f43c (diff) |
Update contact photo for RTT call screen.
Bug: 70177426
Test: manual
PiperOrigin-RevId: 191348602
Change-Id: I332d53ab0c3c628b3dca0c184435bafcf2a13d02
Diffstat (limited to 'java/com/android/incallui/rtt/impl/RttChatMessageViewHolder.java')
-rw-r--r-- | java/com/android/incallui/rtt/impl/RttChatMessageViewHolder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/com/android/incallui/rtt/impl/RttChatMessageViewHolder.java b/java/com/android/incallui/rtt/impl/RttChatMessageViewHolder.java index c88786aa4..2beea9530 100644 --- a/java/com/android/incallui/rtt/impl/RttChatMessageViewHolder.java +++ b/java/com/android/incallui/rtt/impl/RttChatMessageViewHolder.java @@ -17,6 +17,7 @@ package com.android.incallui.rtt.impl; import android.content.res.Resources; +import android.graphics.drawable.Drawable; import android.support.v7.widget.RecyclerView.ViewHolder; import android.view.Gravity; import android.view.View; @@ -41,7 +42,7 @@ public class RttChatMessageViewHolder extends ViewHolder { resources = view.getResources(); } - void setMessage(RttChatMessage message, boolean isSameGroup) { + void setMessage(RttChatMessage message, boolean isSameGroup, Drawable imageDrawable) { messageTextView.setText(message.getContent()); LinearLayout.LayoutParams params = (LayoutParams) container.getLayoutParams(); params.gravity = message.isRemote ? Gravity.START : Gravity.END; @@ -56,7 +57,7 @@ public class RttChatMessageViewHolder extends ViewHolder { avatarImageView.setVisibility(View.INVISIBLE); } else { avatarImageView.setVisibility(View.VISIBLE); - avatarImageView.setImageResource(R.drawable.product_logo_avatar_anonymous_white_color_120); + avatarImageView.setImageDrawable(imageDrawable); } } else { avatarImageView.setVisibility(View.GONE); |