Commit 48a0da1f authored by Varun Patil's avatar Varun Patil

Show body's short description as subheading in body card

parent bbcc852a
......@@ -19,6 +19,9 @@ public class Body {
@ColumnInfo(name = "name")
@SerializedName("name")
String bodyName;
@ColumnInfo(name = "short_description")
@SerializedName("short_description")
String bodyShortDescription;
@ColumnInfo(name = "description")
@SerializedName("description")
String bodyDescription;
......@@ -65,6 +68,14 @@ public class Body {
this.bodyName = bodyName;
}
public String getBodyShortDescription() {
return bodyShortDescription;
}
public void setBodyShortDescription(String bodyShortDescription) {
this.bodyShortDescription = bodyShortDescription;
}
public String getBodyDescription() {
return bodyDescription;
}
......
......@@ -68,7 +68,7 @@ public class BodyCardFragment extends Fragment {
TextView bodyDescription = (TextView) getView().findViewById(R.id.body_description);
bodyName.setText(body.getBodyName());
bodyDescription.setText(body.getBodyName());
bodyDescription.setText(body.getBodyShortDescription());
Picasso.with(getContext()).load(body.getBodyImageURL()).into(bodyAvatar);
}
......
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