Пример #1
0
 @Override
 public void onStop() {
   super.onStop();
   if (controller != null) {
     controller.deleteObservers();
   }
   PropertyCenter.getInstance().removePropertyChangeListener(this);
 }
Пример #2
0
 @Override
 public void onStart() {
   super.onStart();
   if (controller != null && adapter != null) {
     controller.addObserver(adapter);
   }
   PropertyCenter.getInstance().addPropertyChangeListener(this);
 }
Пример #3
0
 @Override
 protected void onDestroy() {
   // TODO Auto-generated method stub
   super.onDestroy();
   PropertyCenter.getInstance().removePropertyChangeListener(this);
   if (controller != null) {
     if (mAdapter != null) {
       controller.deleteObserver(mAdapter);
       mAdapter = null;
     }
     controller.clearCache();
     controller = null;
   }
 }
Пример #4
0
 @Override
 protected void preLoadData(Bundle savedInstanceState) {
   super.preLoadData(savedInstanceState);
   PropertyCenter.getInstance().addPropertyChangeListener(this);
   controller = new ClockController();
 }