Fix: Save all option overrides attachment files#10967
Conversation
|
✅ Validation Passed: All report and feature-flag labels are correctly set. |
f76dfdb to
8de676d
Compare
| import kotlinx.coroutines.suspendCancellableCoroutine | ||
| import kotlinx.coroutines.withContext | ||
| import net.thunderbird.core.android.account.LegacyAccountDto | ||
| import net.thunderbird.core.logging.legacy.Log.e |
There was a problem hiding this comment.
This class is one we're planning on deprecating. I understand this was a kotlin conversion of a Java class, but if we're introducing new code (and a small change at that) we should use the newer class. It's net.thunderbird.core.logging.Logger. You can inject an instance of it.
We have more details of it here: https://github.com/thunderbird/thunderbird-android/blob/49e1eab7e2df55ac83ec02e6e3f8c370ac4843c1/core/logging/README.md
rafaeltonholo
left a comment
There was a problem hiding this comment.
Although we are aiming to migrate all Java to Kotlin, the conversion should not be done in bug fixes like this one. Having a Kotlin conversion in the same changeset as a bug fix makes it harder to review and to revert in case of necessity. Please, revert the AttachmentController Kotlin conversion and apply the fix on the Java side.
|
@rafaeltonholo |
Yes, please! Here is the GitHub issue for the conversion: #11096 |
|
Hi @mohitsatr, now that the Thanks |
8de676d to
a470490
Compare
Fixes #10965
Description
Makes use of
OpenDocumentTree ContractforonSaveAllAttachmentsoption to let users choose a destination folder for all the attachments. Previously, we were forced to click 'save' for each attachment file.Screen Shots
recording_20260710_122921.mp4
AI Disclosure
Select one of the following (mandatory)
Contribution Checklist
gradlew spotlessCheckto check andgradlew spotlessApplyto format your source code; will be checked by CI).gradlew testDebugUnitTest; will be checked by CI).