Back to project page encrypted-camera.
The source code is released under:
Apache License
If you think the Android project encrypted-camera 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.andrewreitz.encryptedcamera.ui.fragment; /*from w w w .ja v a 2s.c o m*/ import android.app.Fragment; import android.os.Bundle; import com.andrewreitz.encryptedcamera.ui.activity.BaseActivity; import butterknife.ButterKnife; import icepick.Icepick; public abstract class BaseFragment extends Fragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Icepick.restoreInstanceState(this, savedInstanceState); } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); BaseActivity.get(this) .inject(this); } @Override public void onDestroyView() { super.onDestroyView(); // Release the views injected by butterknife ButterKnife.reset(this); } @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); Icepick.saveInstanceState(this, outState); } }