Example #1
1
 @Override
 public void onAttach(Activity activity) {
   super.onAttach(activity);
   semesterList = ((App) activity.getApplication()).getSemesterList();
   subject = (AppStateSubject) activity.getApplication();
   subject.registerListener(this);
 }
Example #2
0
 @Override
 public void onDetach() {
   super.onDetach();
   subject.unRegisterListener(this);
 }