// Path: app/src/main/java/edu/umn/paull011/evolveworkoutlogger/EvolveApplication.java
// public class EvolveApplication extends Application {
//     public static RefWatcher getRefWatcher(Context context) {
//         EvolveApplication application = (EvolveApplication) context.getApplicationContext();
//         return application.refWatcher;
//     }
// 
//     private RefWatcher refWatcher;
// 
//     @Override public void onCreate() {
//         super.onCreate();
//         refWatcher = LeakCanary.install(this);
//     }
// }


import android.support.v4.app.Fragment;
import com.squareup.leakcanary.RefWatcher;
import edu.umn.paull011.evolveworkoutlogger.EvolveApplication;
package edu.umn.paull011.evolveworkoutlogger.fragments;




/**
 * Base class for all fragments,
 * Uses LeakCanary to check for fragment leaks
 * Created by mitchell on 9/12/16.
 */
public abstract class BaseFragment extends Fragment {

    @Override public void onDestroy() {
        super.onDestroy();
// Path: app/src/main/java/edu/umn/paull011/evolveworkoutlogger/EvolveApplication.java
// public class EvolveApplication extends Application {
//     public static RefWatcher getRefWatcher(Context context) {
//         EvolveApplication application = (EvolveApplication) context.getApplicationContext();
//         return application.refWatcher;
//     }
// 
//     private RefWatcher refWatcher;
// 
//     @Override public void onCreate() {
//         super.onCreate();
//         refWatcher = LeakCanary.install(this);
//     }
// }


// Path: app/src/main/java/edu/umn/paull011/evolveworkoutlogger/fragments/BaseFragment.java
import android.support.v4.app.Fragment;
import com.squareup.leakcanary.RefWatcher;
import edu.umn.paull011.evolveworkoutlogger.EvolveApplication;

package edu.umn.paull011.evolveworkoutlogger.fragments;




/**
 * Base class for all fragments,
 * Uses LeakCanary to check for fragment leaks
 * Created by mitchell on 9/12/16.
 */
public abstract class BaseFragment extends Fragment {

    @Override public void onDestroy() {
        super.onDestroy();
        RefWatcher refWatcher = EvolveApplication.getRefWatcher(getActivity());