Skip to content

Commit 5969a94

Browse files
committed
derp
Signed-off-by: Umair Khan <[email protected]>
1 parent d0def01 commit 5969a94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

App/src/main/java/in/ac/dtu/subtlenews/MainFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
6868
// TextView textView = (TextView) rootView.findViewById(R.id.section_label);
6969
// textView.setText(Integer.toString(getArguments().getInt(ARG_SECTION_NUMBER)));
7070

71-
new ReadFromJSON().execute();
71+
updateView();
7272

7373
sNumber = getArguments().getInt(ARG_SECTION_NUMBER);
7474

@@ -95,7 +95,7 @@ public void updateView(){
9595

9696

9797

98-
public class ReadFromJSON extends AsyncTask<Void, Void, ArrayList<JSONObject>> {
98+
private class ReadFromJSON extends AsyncTask<Void, Void, ArrayList<JSONObject>> {
9999

100100
@Override
101101
protected ArrayList<JSONObject> doInBackground(Void... v) {

0 commit comments

Comments
 (0)