pachli-android/core
Nik Clayton 85ab714ec1
feat: Add option to save attachments to per-account folders (#945)
The existing code downloaded any attachments to the user's "Downloads"
folder. If the user is logged in with several accounts these downloads
will be mixed up together.

Fix this by adding a new preference that allows the user to specify the
downloads should be placed in a sub-folder per account, named after the
account.

To do this:

- Add an interface for enums that can be used as preferences, with
properties for the string resource to display and the value to store.
- Add `EnumListPreference`, a `ListPreference` that allows the user to
choose between different enum values.
- Add a `DownloadLocation` enum and preference key so the user can
choose the location.
- Add a `core.domain` module, with a use case for downloading URLs that
respect's the user's download preference. Use this use-case everywhere
that files are currently downloaded.

Fixes #938
2024-09-26 13:51:30 +02:00
..
accounts fix: Ensure logging out accounts completes (#515) 2024-03-10 12:25:12 +01:00
activity fix(l10n): Translations update from Hosted Weblate (#933) 2024-09-20 15:53:28 +02:00
common feat: Toggle display of search operators with toolbar action (#836) 2024-07-24 18:51:00 +02:00
data fix(l10n): Translations update from Hosted Weblate (#933) 2024-09-20 15:53:28 +02:00
database fix: Improve push and pull notification reliability (#880) 2024-08-18 15:17:57 +02:00
designsystem fix: Search filters use correct colours in dark and black mode (#881) 2024-08-19 17:23:39 +02:00
domain feat: Add option to save attachments to per-account folders (#945) 2024-09-26 13:51:30 +02:00
model refactor: Remove `TabData` type (#576) 2024-03-30 23:27:25 +01:00
navigation change: Implement more of FiltersRepository (#816) 2024-07-14 15:36:52 +02:00
network fix: Show notification fetch errors instead of JSON (#942) 2024-09-25 13:49:43 +02:00
network-test change: Move MediaUploadApi to the correct package 2024-04-30 16:23:34 +02:00
preferences feat: Add option to save attachments to per-account folders (#945) 2024-09-26 13:51:30 +02:00
testing fix(deps): update dependency org.robolectric:robolectric to v4.13 (#859) 2024-08-21 12:41:16 +02:00
ui feat: Add option to save attachments to per-account folders (#945) 2024-09-26 13:51:30 +02:00
AndroidManifest.xml refactor: Start creating core modules (#286) 2023-12-04 16:58:36 +01:00