ankidroid / ankidroid/Anki-Android

Restoring a note type to default doesn't update the fields

オープン
#20,510 コメント 6 件 リアクション 0 件 担当者 1 名 @david-allison が担当を希望しています GitHub で見る
2.24 Needs Triage
主要言語
Kotlin
スター
11.8k
フォーク
2.9k
平均マージ
2日 3時間
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。