mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-03 15:58:40 +00:00
Introduces `AttachmentSaver` to centralize all of the steps needed to save message attachments to the device storage. It handles the entire workflow including: - Showing the save to storage warning/confirmation dialog. - Requesting `WRITE_EXTERNAL_STORAGE` permission. - Showing/dismissing media save progress. Goals of this new class: - Make it easy to save media attachments anywhere with just a few lines of code (and easier to replace the deprecated `SaveAttachmentTask`). - Ensure all of the necessary steps are consistently performed at each usage site (which wasn't the case before). - Make it easier to unit test the save attachment logic.