package com.stanfy.app.fragments;

import android.os.Bundle;

import com.stanfy.app.BaseFragment;
import com.stanfy.utils.OneRequestModelBehavior;

/**
 * Fragment that contains a request builder instance and is oriented on processing
 * a particular model type.
 * @param <MT> model type
 * @author Roman Mazur (Stanfy - http://www.stanfy.com)
 */
public abstract class OneRequestModelFragment<MT> extends BaseFragment implements OneRequestModelBehavior<MT> {

  /** Core object. */
  private final OneRequestModelHelper<MT> core = new OneRequestModelHelper<MT>(this);

  @Override
  public void onActivityCreated(final Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    core.fetch();
  }

}

@@ -53,16 +53,61 @@
 .Bundle;
+%0Aimport android.support.v4.app.LoaderManager;
 %0A%0Aimport
@@ -609,16 +609,109 @@
 this);%0A%0A
+  @Override%0A  public LoaderManager getSupportLoaderManager() %7B return getLoaderManager(); %7D%0A%0A
   @Overr

implement getSupportLoaderManager for one request model fragment