Example #1
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (getActivity() instanceof ColorChange) {
     this.colorChange = (ColorChange) getActivity();
   }
   cuurentColor = ColorTool.getColor(R.color.default_color, getActivity());
   colorChange.onColorChange(cuurentColor, ColorTool.colorBurn(cuurentColor));
   EventBus.getDefault().register(this);
   mFragmentManager = getChildFragmentManager();
 }
Example #2
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   EventBus.getDefault().unregister(this);
 }
Example #3
0
 @Override
 public void setUserVisibleHint(boolean isVisibleToUser) {
   super.setUserVisibleHint(isVisibleToUser);
 }