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