Skip to content
Snippets Groups Projects
Commit e206095f authored by Aleksandar Stefanović's avatar Aleksandar Stefanović
Browse files

Revert "Removed unused image from layout"

This reverts commit b9a36308
parent 0134760a
No related branches found
No related tags found
1 merge request!15Added "open/closed message" to issue list item (#162)
Loading
Loading
@@ -28,6 +28,7 @@ public class IssueViewHolder extends RecyclerView.ViewHolder {
return new IssueViewHolder(view);
}
 
@BindView(R.id.issue_image) ImageView mImageView;
@BindView(R.id.issue_message) TextView mMessageView;
@BindView(R.id.issue_creator) TextView mCreatorView;
 
Loading
Loading
@@ -38,6 +39,15 @@ public class IssueViewHolder extends RecyclerView.ViewHolder {
 
public void bind(Issue issue) {
 
if (issue.getAssignee() != null) {
App.instance().getPicasso()
.load(ImageUtil.getAvatarUrl(issue.getAssignee(), itemView.getResources().getDimensionPixelSize(R.dimen.image_size)))
.transform(new CircleTransformation())
.into(mImageView);
} else {
mImageView.setImageBitmap(null);
}
mMessageView.setText(issue.getTitle());
 
String time = "";
Loading
Loading
Loading
Loading
@@ -35,4 +35,14 @@
 
</LinearLayout>
 
<ImageView
android:id="@+id/issue_image"
android:layout_width="@dimen/image_size"
android:layout_height="@dimen/image_size"
android:layout_gravity="center_vertical"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:contentDescription="@null"
tools:src="@drawable/ic_assign_24dp" />
</LinearLayout>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment