diff --git a/res/drawable-hdpi/ic_contact_picture.png b/res/drawable-hdpi/ic_contact_picture.png
new file mode 100644
index 0000000000..2eef7b53ce
Binary files /dev/null and b/res/drawable-hdpi/ic_contact_picture.png differ
diff --git a/res/drawable-mdpi/ic_contact_picture.png b/res/drawable-mdpi/ic_contact_picture.png
new file mode 100644
index 0000000000..6c7cb61d60
Binary files /dev/null and b/res/drawable-mdpi/ic_contact_picture.png differ
diff --git a/res/drawable-xhdpi/ic_contact_picture.png b/res/drawable-xhdpi/ic_contact_picture.png
new file mode 100644
index 0000000000..1a2bfde385
Binary files /dev/null and b/res/drawable-xhdpi/ic_contact_picture.png differ
diff --git a/res/drawable/ic_contact_picture.png b/res/drawable/ic_contact_picture.png
deleted file mode 100644
index 1ea44c675e..0000000000
Binary files a/res/drawable/ic_contact_picture.png and /dev/null differ
diff --git a/res/layout/conversation_header_view.xml b/res/layout/conversation_header_view.xml
index eb854fdc7d..198b4e6cb1 100644
--- a/res/layout/conversation_header_view.xml
+++ b/res/layout/conversation_header_view.xml
@@ -2,7 +2,7 @@
-
-
-
-
-
-
-
-
-
+
-
+
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ android:visibility="gone" />
-
-
+
+
-
\ No newline at end of file
diff --git a/res/layout/main.xml b/res/layout/main.xml
index df834cf537..fe2e862934 100644
--- a/res/layout/main.xml
+++ b/res/layout/main.xml
@@ -29,17 +29,13 @@
/>
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:drawSelectorOnTop="false"
+ android:scrollbarStyle="insideOverlay"
+ android:fadingEdgeLength="16dip"
+ android:layout_alignParentTop="true"
+ android:layout_above="@id/search_text" />
selectedThreads;
- private Recipients recipients;
- private long threadId;
- private boolean first;
- private TextView subjectView;
- private TextView fromView;
- private TextView dateView;
- private View unreadIndicator;
- private View keyIndicator;
- private CheckBox checkbox;
- private ImageView contactPhoto;
+ private Recipients recipients;
+ private long threadId;
+ private boolean first;
+ private TextView subjectView;
+ private TextView fromView;
+ private TextView dateView;
+ private View unreadIndicator;
+ private View keyIndicator;
+ private CheckBox checkbox;
+ private QuickContactBadge contactPhoto;
public ConversationHeaderView(Context context, boolean first) {
this(context, (Set)null);
this.first = true;
contactPhoto.setVisibility(View.GONE);
- this.setBackgroundColor(Color.TRANSPARENT);
}
public ConversationHeaderView(Context context, Set selectedThreads) {
@@ -80,7 +77,7 @@ public class ConversationHeaderView extends RelativeLayout {
this.dateView = (TextView)findViewById(R.id.date);
this.unreadIndicator = findViewById(R.id.unread_indicator);
this.keyIndicator = findViewById(R.id.key_indicator);
- this.contactPhoto = (ImageView)findViewById(R.id.contact_photo);
+ this.contactPhoto = (QuickContactBadge)findViewById(R.id.contact_photo);
this.checkbox = (CheckBox)findViewById(R.id.checkbox);
intializeListeners();
@@ -117,13 +114,9 @@ public class ConversationHeaderView extends RelativeLayout {
if (batchMode) checkbox.setVisibility(View.VISIBLE);
else checkbox.setVisibility(View.GONE);
- if (!PreferenceManager.getDefaultSharedPreferences(context).getBoolean(ApplicationPreferencesActivity.CONVERSATION_ICONS_LIST_PREF, ApplicationPreferencesActivity.showIcon())) {
- contactPhoto.setVisibility(View.GONE);
- } else {
- contactPhoto.setImageBitmap(message.getRecipients().getPrimaryRecipient().getContactPhoto());
- contactPhoto.setBackgroundResource(R.drawable.light_border_background);
- contactPhoto.setVisibility(View.VISIBLE);
- }
+ contactPhoto.setImageBitmap(this.recipients.getPrimaryRecipient().getContactPhoto());
+ contactPhoto.assignContactFromPhone(this.recipients.getPrimaryRecipient().getNumber(), true);
+ contactPhoto.setVisibility(View.VISIBLE);
}
}