Back to project page UpcomingMoviesMVP.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Defi...
If you think the Android project UpcomingMoviesMVP listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jlmd.android.newfilmsmvp.ui.fragment; //from w ww.ja va 2s . c om import android.app.Fragment; import android.os.Bundle; import android.view.View; import com.jlmd.android.newfilmsmvp.di.AppApplication; import butterknife.ButterKnife; /** * @author jlmd */ public abstract class BaseFragment extends Fragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); injectDependencies(); } @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); injectViews(view); } private void injectDependencies() { ((AppApplication) getActivity().getApplicationContext()).inject(this); } private void injectViews(View view) { ButterKnife.inject(this, view); } }