Esempio n. 1
0
 private void initialize() {
   pendingFormSubmissionService = context.pendingFormSubmissionService();
   SYNC_STARTED.addListener(onSyncStartListener);
   SYNC_COMPLETED.addListener(onSyncCompleteListener);
   FORM_SUBMITTED.addListener(onFormSubmittedListener);
   ACTION_HANDLED.addListener(updateANMDetailsListener);
 }
Esempio n. 2
0
  @Override
  protected void onDestroy() {
    super.onDestroy();

    SYNC_STARTED.removeListener(onSyncStartListener);
    SYNC_COMPLETED.removeListener(onSyncCompleteListener);
    FORM_SUBMITTED.removeListener(onFormSubmittedListener);
    ACTION_HANDLED.removeListener(updateANMDetailsListener);
  }