Fix crash in UploadStarter on Samsung devices with Android 5#10878
Fix crash in UploadStarter on Samsung devices with Android 5#10878jd-alexander merged 3 commits intorelease/13.7from
Conversation
Co-authored-by: malinajirka <malinajirka@gmail.com>
|
You can test the changes on this Pull Request by downloading the APK here. |
Warning Messages: "@synchronized annotation is not applicable to suspend functions and lambdas" This coroutines warning is suppressed, that is, instead of it being resolved, since it seems that: 1. Adding the '@synchronized' annotation was done deliberately, and 2. Changing that is a bit complicated as it would need a bit more thought to properly fix this, using [Mutex] or otherwise. For more info see: - Fix crash in UploadStarter on Samsung devices with Android 5 #10878 (Introduced In): https://github.com/wordpress-mobile/WordPress-Android/ pull/10878 - Forbid @synchronized annotation on suspend functions (Kotlin Issue): https://youtrack.jetbrains.com/issue/KT-27333/ Forbid-Synchronized-annotation-on-suspend-functions - Coroutines and Java Synchronization Don't Mix (Blog Post: https://blog.danlew.net/2020/01/28/ coroutines-and-java-synchronization-dont-mix/
|
👋 @malinajirka ! It's been almost 3 years already, I know... 😅 But, let me ask you this coroutines related question below, just in case you still remember the answer. 🤞 As part of this Compile Warnings PR, that I am currently working on, I was trying to resolve the
To that end, and as far as you aware and remember, do you think we could/should resolve this |
|
@ParaskP7 I do remember this code and convo relatively well considering how long it has been - time flies :).
Let me know if I can provide some further context. |
|
@malinajirka time flies indeed! 🛸
👍 🌟 🤞
Not only you provided all the context I needed, you also did it at the speed of light, thank you for that, so much appreciated! 🙇 FYI: I'll proceed with updating my PR and revert this change to |
This has the same contents as #10877. The difference is this one is targeting
release/13.7.Testing
Please do the same testing steps in #10877.
Submitter Checklist
RELEASE-NOTES.txtif necessary.