示例#1
0
  @Override
  protected void onDestroy() {
    super.onDestroy();

    SYNC_STARTED.removeListener(onSyncStartListener);
    SYNC_COMPLETED.removeListener(onSyncCompleteListener);
    FORM_SUBMITTED.removeListener(onFormSubmittedListener);
    ACTION_HANDLED.removeListener(updateANMDetailsListener);
  }
示例#2
0
  @Override
  public boolean onPrepareOptionsMenu(Menu menu) {
    super.onPrepareOptionsMenu(menu);
    updateMenuItem = menu.findItem(R.id.updateMenuItem);
    remainingFormsToSyncMenuItem = menu.findItem(R.id.remainingFormsToSyncMenuItem);

    updateSyncIndicator();
    updateRemainingFormsToSyncCount();
    return true;
  }