ankidroid / ankidroid/Anki-Android
Restoring a note type to default doesn't update the fields
- 主要语言
- Kotlin
- 星标
- 11.8k
- 派生
- 2.9k
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 171
描述
### 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. Add a field to the basic note type and some text to its front template. Save that.
2. Restore it to default.
3. Observe that the fields are not updated immediately.
4. Undo the restore to default action.
5. Observe that the fields aren't updated.
https://github.com/user-attachments/assets/01268c20-b3fd-45af-91ac-1ed6a9ca970d
### Expected behaviour
It should update immediately.
### Debug info
```text
AnkiDroid Version = 2.24.0alpha9 (72568b4e67dfb2f89f8bb8d0923dd6460d3e6e49)
Backend Version = 0.1.63-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)
Android Version = 13 (SDK 33)
ProductFlavor = full
Device Info = Xiaomi | POCO | mondrian | mondrian_global | 23013PC75G | qcom
WebView Info = [com.google.android.webview | 763215903]: Mozilla/5.0 (Linux; Android 13; 23013PC75G Build/TKQ1.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/145.0.7632.159 Mobile Safari/537.36
ACRA UUID = 4afc3b3f-e93f-4a66-bc71-2b9476ef9eb0
FSRS = 5.1.0 (Enabled: true)
Crash Reports Enabled = true
```
### (Optional) Anything else you want to share?
- Doing some stuff like opening and closing the note editor makes it update.
- The previews in the note editor don't update either.
- Also, on older versions like 2.23.3, the previews in the card browser aren't updated.
### Research
- [x] I have checked the [manual](https://ankidroid.org/docs/manual.html) and the [FAQ](https://github.com/ankidroid/Anki-Android/wiki/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](https://docs.ankidroid.org/manual.html#betaTesting))
贡献指南
评估
这个 Issue 还没有评估数据。