mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 12:02:16 +02:00
Remove undo mark note functionality
This commit is contained in:
parent
9e469307d5
commit
384bf06bd6
@ -590,8 +590,6 @@ public class DeckTask extends BaseAsyncTask<DeckTask.TaskData, DeckTask.TaskData
|
||||
try {
|
||||
if (card != null) {
|
||||
Note note = card.note();
|
||||
col.markUndo(Collection.UNDO_MARK_NOTE,
|
||||
new Object[]{note.getId(), note.stringTags(), card.getId()});
|
||||
if (note.hasTag("marked")) {
|
||||
note.delTag("marked");
|
||||
} else {
|
||||
|
@ -113,7 +113,6 @@ public class Collection {
|
||||
public static final int UNDO_SUSPEND_CARD = 3;
|
||||
public static final int UNDO_SUSPEND_NOTE = 4;
|
||||
public static final int UNDO_DELETE_NOTE = 5;
|
||||
public static final int UNDO_MARK_NOTE = 6;
|
||||
public static final int UNDO_BURY_CARD = 7;
|
||||
|
||||
private static final int[] fUndoNames = new int[]{
|
||||
@ -1273,12 +1272,6 @@ public class Collection {
|
||||
mDb.execute("DELETE FROM graves WHERE oid IN " + Utils.ids2str(Utils.arrayList2array(ids)));
|
||||
return (Long) data[3];
|
||||
|
||||
case UNDO_MARK_NOTE:
|
||||
Note note3 = getNote((Long) data[1]);
|
||||
note3.setTagsFromStr((String) data[2]);
|
||||
note3.flush(note3.getMod(), false);
|
||||
return (Long) data[3];
|
||||
|
||||
case UNDO_BURY_CARD:
|
||||
for (Card cc : (ArrayList<Card>)data[2]) {
|
||||
cc.flush(false);
|
||||
@ -1310,9 +1303,6 @@ public class Collection {
|
||||
case UNDO_DELETE_NOTE:
|
||||
mUndo.add(new Object[]{type, o[0], o[1], o[2]});
|
||||
break;
|
||||
case UNDO_MARK_NOTE:
|
||||
mUndo.add(new Object[]{type, o[0], o[1], o[2]});
|
||||
break;
|
||||
case UNDO_BURY_CARD:
|
||||
mUndo.add(new Object[]{type, o[0], o[1], o[2]});
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user