コード例 #1
0
  @Override
  public void onEventNotReopened() {
    // Event not closed
    dialogCloseProgress.dismiss();

    // Show a Toast notifying
    DialogInformation.build(this)
        .show(getString(R.string.generic_error), DialogInformation.ICON_ALERT);
  }
コード例 #2
0
  @Override
  public void onEventNotResponded() {
    // Hide the progress dialog
    dialogRespondProgress.dismiss();

    // Show a Toast notifying
    DialogInformation.build(this)
        .show(getString(R.string.generic_error), DialogInformation.ICON_ALERT);

    // The event has not been responded
    setResult(Imin.RESULT_CODE_POLL_LOCATIONS_ERROR);
  }
コード例 #3
0
  @Override
  public void onEventReopened() {
    Event event = imin.getUser().getCurrentEvent();

    // Set closed flag
    event.setClosed(false);

    // Event reopened
    dialogCloseProgress.dismiss();

    // Show a Toast notifying
    DialogInformation.build(this)
        .show(getString(R.string.event_reopened), DialogInformation.ICON_INFO);
  }
コード例 #4
0
  @Override
  public void onEventClosed() {
    Event event = imin.getUser().getCurrentEvent();

    // Set closed flag
    event.setClosed(true);
    event.setFinalDateTimeProposal(imin.getUser().getSelectedDateTimeProposal());
    event.setFinalLocationProposal(imin.getUser().getSelectedLocationProposal());

    // Event closed
    dialogCloseProgress.dismiss();

    // Show information dialog
    dialogClosed();
  }
コード例 #5
0
  @Override
  public void onEventResponded() {
    Event event = imin.getUser().getCurrentEvent();

    // Flag the event as responded
    event.setResponded(true);

    imin.getUser().setPollResponded(true);

    // Event closed
    dialogRespondProgress.dismiss();

    // Event responded
    dialogResponded();

    // Analytics event
    Analytics.send(this, Analytics.ANALYTICS_EVENT_VOTE);
  }