diff --git a/res/drawable-xhdpi/avatar_chat_mask_outgoing.png b/res/drawable-xhdpi/avatar_chat_mask_outgoing.png
new file mode 100644
index 000000000..7e471c425
Binary files /dev/null and b/res/drawable-xhdpi/avatar_chat_mask_outgoing.png differ
diff --git a/res/layout/chat_bubble.xml b/res/layout/chat_bubble.xml
index 1b0bc6601..ea91abc84 100644
--- a/res/layout/chat_bubble.xml
+++ b/res/layout/chat_bubble.xml
@@ -27,14 +27,33 @@
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/delete_message"
android:orientation="horizontal">
-
-
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/org/linphone/ChatFragment.java b/src/org/linphone/ChatFragment.java
index 924dc6de6..13d29ea46 100644
--- a/src/org/linphone/ChatFragment.java
+++ b/src/org/linphone/ChatFragment.java
@@ -950,6 +950,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
public Button fileTransferAction;
public ImageView messageStatus;
public ProgressBar messageSendingInProgress;
+ public ImageView contactPictureMask;
public ViewHolder(View view) {
id = view.getId();
@@ -965,6 +966,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
fileTransferAction = (Button) view.findViewById(R.id.file_transfer_action);
messageStatus = (ImageView) view.findViewById(R.id.status);
messageSendingInProgress = (ProgressBar) view.findViewById(R.id.inprogress);
+ contactPictureMask = (ImageView) view.findViewById(R.id.mask);
}
@Override
@@ -1191,6 +1193,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
Compatibility.setTextAppearance(holder.contactName, getActivity(), R.style.font3);
Compatibility.setTextAppearance(holder.fileTransferAction, getActivity(), R.style.font15);
holder.fileTransferAction.setBackgroundResource(R.drawable.resizable_confirm_delete_button);
+ holder.contactPictureMask.setImageResource(R.drawable.avatar_chat_mask_outgoing);
} else {
if (isEditMode) {
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
@@ -1203,6 +1206,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
Compatibility.setTextAppearance(holder.contactName, getActivity(), R.style.font9);
Compatibility.setTextAppearance(holder.fileTransferAction, getActivity(), R.style.font8);
holder.fileTransferAction.setBackgroundResource(R.drawable.resizable_assistant_button);
+ holder.contactPictureMask.setImageResource(R.drawable.avatar_chat_mask);
}
holder.bubbleLayout.setLayoutParams(layoutParams);