fix(SetDueDateDialog) : TransactionTooLargeException#21055
Draft
Alok-Silswal wants to merge 3 commits into
Draft
fix(SetDueDateDialog) : TransactionTooLargeException#21055Alok-Silswal wants to merge 3 commits into
Alok-Silswal wants to merge 3 commits into
Conversation
Member
|
merged! Please rebase + remove the merge commits in the history |
# Conflicts: # AnkiDroid/src/test/java/com/ichi2/anki/scheduling/SetDueDateDialogTest.kt
6d7b5ee to
4d601f6
Compare
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.
Purpose / Description
Set Due Date Dialog crashed when >60k browsed cards are selected and the user puts the app in the background.
Fixes
Approach
Imitated the approach used in
FindAndReplaceDialogFragment.ktand Export Dialog to deal with this issue by using the classIdsFilerather than usingBundle, which was overflowing when the capacity exceeded, thereby causing the crash.Modified
newInstanceAPI in unit tests to make it consistent with the approach used in this PR.How Has This Been Tested?
Tested on my phone (Android 14, Xiaomi / HyperOS) using a debug build.
Both these observations have been tested. Video attached as evidence.
Checklist
Please, go through these checks before submitting the PR.
SetDueDate.Fix.Evidence.mp4