Skip to content

architecture: Improve collection creation logic #21204

Description

@david-allison

Over the years, we have had many issues with 'startup paths' aside from AnkiDroidApp -> IntentHandler -> DeckPicker

In addition, we want to make this more complicated, by making MANAGE_EXTERNAL_STORAGE optional.

Aims:

  • In the full flavor: MANAGE_EXTERNAL_STORAGE becomes optional
  • The collection directory creation is deferred until a user has made the above decision
  • All launchable activities need to handle 'user has not decided on MANAGE_EXTERNAL_STORAGE'
  • withCol/getColUnsafe/etc... will be modified to throw, until this decision has been made
    • This means that setting the collection path is explicit, no longer implicitly performed in withCol

Metadata

Metadata

Assignees

Labels

No labels
No labels

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions