package com.example.android.quakereport;

import android.content.AsyncTaskLoader;
import android.content.Context;

import java.util.List;

/**
 * Created by jaspreet.singh on 1/11/2018.
 */

/**
 * Loads a list of earthquakes by using an AsyncTask to perform the
 * network request to the given URL.
 */
public class EarthquakeLoader extends AsyncTaskLoader<List<Earthquake>> {

    private String mUrl;

    public EarthquakeLoader (Context context, String url)   {
        super(context);
        mUrl = url;
    }

    @Override
    public List<Earthquake> loadInBackground() {
        List<Earthquake> result = QueryUtils.fetchEarthquakeData(mUrl);
        return result;
    }
}

@@ -372,16 +372,33 @@
 ke%3E%3E %7B%0A%0A
+    // Query URL%0A
     priv
@@ -415,16 +415,160 @@
  mUrl;%0A%0A
+    /**%0A     * Constructs a new %7B@link Earthquake%7D%0A     *%0A     * @param context of the activity%0A     * @param url to load the data from%0A     */%0A
     publ

create a constructor for EarthquakeLoader class