-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
BugFix - NetworkOnMainThreadException: FileDataStorageManager.saveFileWithParent #14268
base: master
Are you sure you want to change the base?
BugFix - NetworkOnMainThreadException: FileDataStorageManager.saveFileWithParent #14268
Conversation
alperozturk96
commented
Dec 30, 2024
•
edited
Loading
edited
- Tests written, or not not needed
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #14268 +/- ##
=============================================
+ Coverage 0 25.27% +25.27%
- Complexity 0 3429 +3429
=============================================
Files 0 689 +689
Lines 0 50649 +50649
Branches 0 6821 +6821
=============================================
+ Hits 0 12804 +12804
- Misses 0 35866 +35866
- Partials 0 1979 +1979
|
I think FileDataStorageManager shall not handle this. |
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.
Please fix in FileDisplayActivity
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
0faedb3
to
5562792
Compare
After your comment, I checked again, and the actual issue is with the method:
This callback runs on the main thread, which is necessary for some cases. However, in other cases, like this one, it must run on a background thread instead of the main thread. Current Usage of isNetworkAndServerAvailable: Must run on a background thread: Must run on the main thread: To address this, it would be better to create a new PR. Before proceeding, I want to inform you because this PR will touch multiple files. While it won’t be a large PR, it will require careful testing. What do you think? Is it okay for you? |
@tobiasKaminsky How are we going to proceed? I explained earlier I have to change multiple files to fix this issue. Shall I create a PR for that? |