arch(dev-only): handle 'no storage decision' for all activities in ActivityList#21323
Merged
Merged
Conversation
IntentHandler will handle routing: initially to DeckPicker, and later to a screen where the storage decision can be made Assisted-by: Claude Fable 5
criticalAY
approved these changes
Jul 1, 2026
criticalAY
left a comment
Contributor
There was a problem hiding this comment.
Nitpicks, rest all clean, thanks
Comment on lines
+19
to
+21
| * A [StorageNotConfiguredException] escaping a coroutine means an activity raced or | ||
| * outlived its [ensureStorageReady][com.ichi2.anki.startup.ensureStorageReady] check: | ||
| * the user should be sent to the main entry point, which handles storage setup. |
Contributor
There was a problem hiding this comment.
The function is ensureStorageIsReady
Assisted-by: Claude Fable 5
Assisted-by: Claude Fable 5 Co-authored-by: Ashish Yadav <48384865+criticalAY@users.noreply.github.com>
33238d0 to
8b93e25
Compare
criticalAY
approved these changes
Jul 2, 2026
lukstbit
approved these changes
Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Assisted-by: Claude Fable 5
Purpose / Description
I want collection creation to become part of the onboarding sequence., moving it out of the implicit
Collection.withColThis opens the floor for a 'storage decision': if the user is using a
fullbuild - do they want to obtainMANAGE_EXTERNAL_STORAGE, or continue with app-private storage?In this case, all activities need to handle the possibility that the decision wasn't made yet, or was revoked. Most of these cases have been handled, but these activities remained, typically being launched after process death, or through notifications/app shortcuts.
Fixes
full(F-Droid/GitHub) releases users to grant theAll files accesspermission #13574Approach
IntentHandler-> DeckPicker if no storage decision is madeIntentHandler, in future to be moved to a selection screen.launchCatchingTaskHow Has This Been Tested?
Unit tested
Checklist