Editing templates breaks the undo feature
Checked for duplicates?
- [x] This issue is not a duplicate
Does it also happen in the desktop version?
- [x] This bug does not occur in the latest version of Anki Desktop
What are the steps to reproduce this bug?
- Do something like deleting a deck.
- Edit the template of some note type.
- You can't undo anything!
Expected behaviour
You can undo editing the template as well as anything before that.
Debug info
AnkiDroid Version = 2.22.3 (4f2ec681da36b8307a865f05192498b8425adf0f)
Backend Version = 0.1.60-anki25.07.5 (25.07.5 7172b2d26684c7ef9d10e249bd43dc5bf73ae00c)
Android Version = 13 (SDK 33)
ProductFlavor = play
Device Info = Xiaomi | POCO | mondrian | mondrian_global | 23013PC75G | qcom
Webview User Agent = Mozilla/5.0 (Linux; Android 13; 23013PC75G Build/TKQ1.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/139.0.7258.158 Mobile Safari/537.36
ACRA UUID = 3792582f-98ac-430e-ae42-4ace0156bf29
FSRS = 4.1.1 (Enabled: true)
Crash Reports Enabled = true
(Optional) Anything else you want to share?
Research
- [x] I have checked the manual and the FAQ and could not find a solution to my issue
- [x] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
I don't understand, what's the bug here?
When you edit a template, you lose the undo ~~queue~~ stack.
@ZornHadNoChoice i want to work on this can you assign this to me
@Aadarsh45 I don't have the rights to assign. You can go ahead though, just state that you're working on it.
hlo bro can u provide any thing which help to get what architecture and flow of your app
Sorry, I have no idea what you're talking about. I'm not a developer!
@Aadarsh45 Please go through the Development-Guide to learn more about contributing.
I'd suggest, follow the reproduction steps, check for logs in the logcat to find which part of code is being invoked.
Ok
@ZornHadNoChoice Is this still an issue now #19559 has gone in?
~~Still an issue in v2.23.0alpha8.~~
Edit: fixed in 2.23.0beta3.