ankidroid / ankidroid/Anki-Android

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

Abierto
#20,510 6 comentarios 0 reacciones 1 asignado Reclamado por @david-allison Ver en GitHub
2.24 Needs Triage
Lenguaje dominante
Kotlin
Estrellas
11.8k
Forks
2.9k
Merge medio
2 d 3 h
PR fusionados (30 d)
171

Descripción

### 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))

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.