// Path: app/src/main/java/com/fomdeveloper/planket/PlanketApplication.java
// public class PlanketApplication extends Application {
// 
//     private AppComponent appComponent;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         Crashlytics crashlyticsKit = new Crashlytics.Builder()
//                 .core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
//                 .build();
// 
//         Fabric.with(this, crashlyticsKit);
// 
//         if (BuildConfig.DEBUG){
//             Timber.plant(new Timber.DebugTree());
//         }
// 
//         appComponent = createComponent();
// 
//     }
// 
//     public AppComponent createComponent() {
//         return DaggerAppComponent.builder().appModule(new AppModule(this)).build();
//     }
// 
//     public AppComponent getAppComponent() {
//         return appComponent;
//     }
// 
// }
// 
// Path: app/src/main/java/com/fomdeveloper/planket/data/model/Ego.java
// public abstract class Ego implements UserProfileInfo {
// 
//     protected abstract String getProfilePicUrl();
// 
//     @Override
//     public String getUserProfilePicUrl() {
//         return getProfilePicUrl();
//     }
// }


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import com.fomdeveloper.planket.PlanketApplication;
import com.fomdeveloper.planket.R;
import com.fomdeveloper.planket.data.model.Ego;
import java.util.List;
import javax.inject.Inject;
        super.onCreate(savedInstanceState);
        ((PlanketApplication)getActivity().getApplication()).getAppComponent().inject(this);
        photoId = getArguments().getString(ARG_PHOTO_ID);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        presenter.attachView(this);
        presenter.loadFaves(photoId);
    }

    @Override
    public void onDetach() {
        super.onDetach();
        presenter.detachView();
    }

    @Override
    public void showEgoItems(List<? extends Ego> egoItems) {
        egoAdapter.addEgo(egoItems);
    }

    @Override
    protected void loadMore() {
        presenter.loadFaves(photoId);
    }

    @Override
    public void showNoEgo() {
// Path: app/src/main/java/com/fomdeveloper/planket/PlanketApplication.java
// public class PlanketApplication extends Application {
// 
//     private AppComponent appComponent;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         Crashlytics crashlyticsKit = new Crashlytics.Builder()
//                 .core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
//                 .build();
// 
//         Fabric.with(this, crashlyticsKit);
// 
//         if (BuildConfig.DEBUG){
//             Timber.plant(new Timber.DebugTree());
//         }
// 
//         appComponent = createComponent();
// 
//     }
// 
//     public AppComponent createComponent() {
//         return DaggerAppComponent.builder().appModule(new AppModule(this)).build();
//     }
// 
//     public AppComponent getAppComponent() {
//         return appComponent;
//     }
// 
// }
// 
// Path: app/src/main/java/com/fomdeveloper/planket/data/model/Ego.java
// public abstract class Ego implements UserProfileInfo {
// 
//     protected abstract String getProfilePicUrl();
// 
//     @Override
//     public String getUserProfilePicUrl() {
//         return getProfilePicUrl();
//     }
// }


// Path: app/src/main/java/com/fomdeveloper/planket/ui/presentation/ego/FavesFragment.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import com.fomdeveloper.planket.PlanketApplication;
import com.fomdeveloper.planket.R;
import com.fomdeveloper.planket.data.model.Ego;
import java.util.List;
import javax.inject.Inject;

        super.onCreate(savedInstanceState);
        ((PlanketApplication)getActivity().getApplication()).getAppComponent().inject(this);
        photoId = getArguments().getString(ARG_PHOTO_ID);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        presenter.attachView(this);
        presenter.loadFaves(photoId);
    }

    @Override
    public void onDetach() {
        super.onDetach();
        presenter.detachView();
    }

    @Override
    public void showEgoItems(List<? extends Ego> egoItems) {
        egoAdapter.addEgo(egoItems);
    }

    @Override
    protected void loadMore() {
        presenter.loadFaves(photoId);
    }

    @Override
    public void showNoEgo() {
        noItems.setText(R.string.no_faves);