Пример #1
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);
  }
Пример #2
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();
  }