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 { ...@@ -26,7 +26,7 @@ public class BodyFragment extends Fragment {
String TAG = "BodyFragment"; String TAG = "BodyFragment";
// TODO: Rename and change types of parameters // TODO: Rename and change types of parameters
private Body body; private Body min_body;
public BodyFragment() { public BodyFragment() {
...@@ -53,7 +53,7 @@ public class BodyFragment extends Fragment { ...@@ -53,7 +53,7 @@ public class BodyFragment extends Fragment {
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
if (getArguments() != null) { 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 { ...@@ -62,7 +62,7 @@ public class BodyFragment extends Fragment {
super.onStart(); super.onStart();
TextView bodyName = (TextView) getView().findViewById(R.id.body_name); 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