Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Editing templates breaks the undo feature

Open ZornHadNoChoice opened this issue 1 year ago • 10 comments

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?

  1. Do something like deleting a deck.
  2. Edit the template of some note type.
  3. 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)

ZornHadNoChoice avatar Sep 05 '25 22:09 ZornHadNoChoice

I don't understand, what's the bug here?

sanjaysargam avatar Sep 25 '25 09:09 sanjaysargam

When you edit a template, you lose the undo ~~queue~~ stack.

ZornHadNoChoice avatar Sep 25 '25 09:09 ZornHadNoChoice

@ZornHadNoChoice i want to work on this can you assign this to me

Aadarsh45 avatar Oct 27 '25 18:10 Aadarsh45

@Aadarsh45 I don't have the rights to assign. You can go ahead though, just state that you're working on it.

ZornHadNoChoice avatar Oct 27 '25 18:10 ZornHadNoChoice

hlo bro can u provide any thing which help to get what architecture and flow of your app

Aadarsh45 avatar Oct 27 '25 18:10 Aadarsh45

Sorry, I have no idea what you're talking about. I'm not a developer!

ZornHadNoChoice avatar Oct 27 '25 18:10 ZornHadNoChoice

@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.

thedroiddiv avatar Oct 28 '25 15:10 thedroiddiv

Ok

Aadarsh45 avatar Oct 29 '25 11:10 Aadarsh45

@ZornHadNoChoice Is this still an issue now #19559 has gone in?

david-allison avatar Nov 27 '25 02:11 david-allison

~~Still an issue in v2.23.0alpha8.~~

Edit: fixed in 2.23.0beta3.

ZornHadNoChoice avatar Nov 27 '25 03:11 ZornHadNoChoice