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