Skip to content

Commit

Permalink
Option to cancel the removal of tags/notes
Browse files Browse the repository at this point in the history
  • Loading branch information
proninyaroslav committed Feb 10, 2016
1 parent f1f45bf commit 3aa3c8a
Showing 1 changed file with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,41 +476,6 @@ void deleteNotes(final List<Integer> items) {
final String account = activeAccountRepository.getActiveAccount().getAccount();
final String rootFolder = activeAccountRepository.getActiveAccount().getRootFolder();

// AlertDialog.Builder builder = new AlertDialog.Builder(activity);
//
// builder.setTitle(R.string.dialog_delete_notes);
// builder.setMessage(R.string.dialog_question_delete_notes);
// builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
// @Override
// public void onClick(DialogInterface dialog, int which) {
// for (int position : items) {
// final String uid = mSelectedNotes.get(position);
// final Note note = notesRepository.getByUID(account, rootFolder, uid);
//
// if (note != null) {
// Notebook book = checkModificationPermissionInCurrentBook(account, rootFolder, uid);
// if (book == null) continue;
// notesRepository.delete(account, rootFolder, note);
// }
// }
// mSelectedNotes.clear();
// Utils.setSelectedTagName(activity,null);
// Utils.setSelectedNotebookName(activity, null);
// reloadData();
// if (tabletMode) {
// displayBlankFragment();
// }
// }
// });
//
// builder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
// @Override
// public void onClick(DialogInterface dialog, int which) {
// //nothing
// }
// });
// builder.show();

final ArrayList<Note> notes = new ArrayList<Note>();
for (int position : items) {
final String uid = mSelectedNotes.get(position);
Expand Down

0 comments on commit 3aa3c8a

Please sign in to comment.