Commit f59eed5e authored by Varun Patil's avatar Varun Patil

Rename body to min_body in BodyFragment

This is helpful because we still need to make an HTTP request to get the
entire body, which can then be displayed
parent 5cdfecd7
......@@ -26,7 +26,7 @@ public class BodyFragment extends Fragment {
String TAG = "BodyFragment";
// TODO: Rename and change types of parameters
private Body body;
private Body min_body;
public BodyFragment() {
......@@ -53,7 +53,7 @@ public class BodyFragment extends Fragment {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
body = new Gson().fromJson(getArguments().getString(ARG_BODY), Body.class);
min_body = new Gson().fromJson(getArguments().getString(ARG_BODY), Body.class);
}
}
......@@ -62,7 +62,7 @@ public class BodyFragment extends Fragment {
super.onStart();
TextView bodyName = (TextView) getView().findViewById(R.id.body_name);
bodyName.setText(body.getBodyName());
bodyName.setText(min_body.getBodyName());
}
......
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