ankidroid / ankidroid/Anki-Android
Collection verifying startup code in DeckPicker, IntentHandler (and others) also startup
Open
Enhancement
Keep Open
- Dominant language
- Kotlin
- Stars
- 11.8k
- Forks
- 2.9k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 171
Description
The issue with #5072 has a root cause that is related to DeckPicker having all our startup code that is protective and makes sure we have access to the collection, but IntentHandler is also a valid startup pathway and doesn't always distribute control to DeckPicker.
The protective code from DeckPicker's startup area needs to move to a dedicated "startup" area and all entry points should reference it.
This could be contemplated at the same time as a full database migration solution #5120 since it would also need to run on startup every time
Contributor guide
Assessment
This issue has not been assessed yet.