-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix: Prevent crash when pausing/resuming uploads after screen rotation #6532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Kota-Jagadeesh
wants to merge
24
commits into
commons-app:main
Choose a base branch
from
Kota-Jagadeesh:fix/upload-rotation-crash
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+90
−57
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
8352bc5
fix:gracefully handle the missing presenter during configuration change
Kota-Jagadeesh 38cd528
fix:safely retrieve fragments to prevent stale references after rotation
Kota-Jagadeesh 33d3e44
Merge branch 'commons-app:main' into fix/upload-rotation-crash
Kota-Jagadeesh 8f66028
Fix: Use safe calls to prevent NullPointerException on upload menu ac…
Kota-Jagadeesh e079de0
Refactor:used nullable presenter field and safe calls for injection r…
Kota-Jagadeesh e5a4fd3
fix: retrieve active fragment by tag to eliminate stale reference and…
Kota-Jagadeesh 7522803
Merge branch 'main' into fix/upload-rotation-crash
Kota-Jagadeesh 81b59a0
Revert: remove the nullable presenter and safe calls as injection is …
Kota-Jagadeesh 7aa1c0f
fix: retain the fragment manager lookup to prevent stale references a…
Kota-Jagadeesh b79f540
remove redundant Presenter initialization check
Kota-Jagadeesh 3dbb031
refactor:use robust FragmentManager 'find' by class to prevent stale …
Kota-Jagadeesh 4f7033b
Polished some comments
Kota-Jagadeesh 2e13a02
Merge branch 'main' into fix/upload-rotation-crash
Kota-Jagadeesh 7b18d39
Merge branch 'main' into fix/upload-rotation-crash
nicolas-raoul 6b3be73
Merge branch 'main' into fix/upload-rotation-crash
Kota-Jagadeesh 4f8a2ad
Merge branch 'main' into fix/upload-rotation-crash
Kota-Jagadeesh 7de8ebc
Merge branch 'main' into fix/upload-rotation-crash
Kota-Jagadeesh 7c1726b
Merge branch 'main' into fix/upload-rotation-crash
Kota-Jagadeesh a83a43b
Merge branch 'main' into fix/upload-rotation-crash
Kota-Jagadeesh 5ddd369
Remove unintended changes
Kota-Jagadeesh dd1bb05
Add: isInitialized safety checks for presenter access to prevent Unin…
Kota-Jagadeesh 5c4d754
Refactor: fragment retrieval in UploadProgressActivity to use dynamic…
Kota-Jagadeesh fdc91dd
Merge branch 'main' into fix/upload-rotation-crash
Kota-Jagadeesh 529c806
Merge branch 'main' into fix/upload-rotation-crash
Kota-Jagadeesh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we evaluate this for every operation? Could you please elaborate if there are any use cases apart from configuration changes that need this? I thought adding it to
setTabs()would suffice. Please check my previous comment for that approach and share the pros and cons of both the approaches.