package com.naijab.nextzytimeline.ui.people.detail.fragment;

import com.naijab.nextzytimeline.base.BaseMvpPresenter;
import com.naijab.nextzytimeline.ui.people.model.PeopleManager;
import com.naijab.nextzytimeline.ui.people.model.PeopleModel;

import io.realm.Realm;
import io.realm.RealmChangeListener;

public class DetailPeopleFragmentPresenter extends BaseMvpPresenter<DetailPeopleFragmentInterface.View>
        implements DetailPeopleFragmentInterface.Presenter {

    Realm realm;

    public static DetailPeopleFragmentInterface.Presenter create() {
        return new DetailPeopleFragmentPresenter();
    }

    @Override
    public void onViewStart() {
        super.onViewStart();
        realm = Realm.getDefaultInstance();
    }

    @Override
    public void onViewStop() {
        super.onViewStop();
        realm.close();
    }

//    @Override
//    public void getPeopleDetail(int id) {
//        PeopleModel item = PeopleManager.getInstance(realm).getPeople(id);
//        getView().getPeopleByID(item);
//    }
}

@@ -469,16 +469,24 @@
  %7B%0A%0A    
+private 
 Realm re
@@ -850,194 +850,7 @@
    %7D
-%0A%0A//    @Override%0A//    public void getPeopleDetail(int id) %7B%0A//        PeopleModel item = PeopleManager.getInstance(realm).getPeople(id);%0A//        getView().getPeopleByID(item);%0A//    %7D
 %0A%7D%0A

Remove getPeopleDetail in Presenter