@Override public void onDestroyView() { if (rootView.getParent() != null) { ((ViewGroup) rootView.getParent()).removeView(rootView); } super.onDestroyView(); }
@Override public void onAttach(Activity activity) { super.onAttach(activity); this.activity = activity; }
@Override public void onResume() { super.onResume(); presenter.init(this); presenter.onResume(spiceManager); }
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); this.getComponent(IMainActivityComponent.class).inject(this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRetainInstance(true); }
@Override public void onPause() { presenter.onPause(); super.onPause(); }