ankidroid / ankidroid/Anki-Android

Investigate the relationship between shortcut and sync

Abierto
#17,773 1 comentario 0 reacciones 0 asignados Ver en GitHub
Keep Open
Lenguaje dominante
Kotlin
Estrellas
11.8k
Forks
2.9k
Merge medio
2 d 3 h
PR fusionados (30 d)
171

Descripción

How to reproduce:
* Have a deck D with cards to review
* enable automated sync
* create a shortcut to D
* do some review.
* force cloze anki by swapping the app on the android app list, ensuring it does not sync on cloze
* wait 10 minutes
* open the deck D through the shortcut

With a recent change I introduced, this open the deck picker and automatically open the reviewer on top of it. I think I saw the sync view opening on top of the deck picker during not even a second.
We need to investigate what's going on exactly in the deck picker, related to sync.

Because, if the automated sync goes on and finish in 1 second, that's great. Data is synced, maybe media sync is ongoing, that's perfect. That even solved an issue I had related to sync and shortcut, and I would have solved it by accident.

If a force sync is needed, it seems that nothing occurs. Which is okay-ish. The user should probably be warned they need to force sync before they start their review. We should surely improve the behavior here.

What I'm effrayed is that if there is a long sync. Due to a lot of changes, new decks, card reviewed, you're on a device you've not used in months, and you have a slow internet connection, you may be able to start reviewing while sync is going on. And ankidroid is really not prepared to have anything going on in parallel to a collection sync.

I'm not sure. Someone need to investigate what is going on. Probably using breakpoint in the codebase to check whether sync is aborted, sync is going on normally, whether we can actually review while sync is going on (which would be quite bad)

Of course, this someone can be me when I've some free time and my mind is awake enough to be sure of my investigation. But if anyone else want to take a look, I'd appreciate that a lot.

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.