@Override
  public void onNotesSelected(NoteInfo note) {
    if (!isAdded()) return;

    if (note == null) {
      ToastUtils.showToast(getActivity(), R.string.note_not_found);
      return;
    }

    ActivityLauncher.previewNoteForResult(getActivity(), note.getId());
  }