Commit graph

1679 commits

Author SHA1 Message Date
cketti
ae374bd5f4
Merge pull request #6647 from thundernest/message_details_folder_name
Display folder name in message details screen
2023-02-10 10:55:25 +01:00
Wolf-Martell Montwé
6224d40a4f
Merge pull request #6649 from thundernest/change_messagetopview_to_kotlin
Changed `MessageTopView` to Kotlin
2023-02-10 09:02:32 +00:00
Wolf Montwe
0e7492fecb
Change MessageTopView to Kotlin 2023-02-09 19:59:59 +01:00
Wolf Montwe
292bf17eb1
Rename MessageTopView to kt 2023-02-09 16:02:54 +01:00
cketti
90e5c265da Don't allow dragging the message details bottom sheet when the list is scrolled 2023-02-09 13:41:52 +01:00
cketti
faf8b42acc Display folder name in message details screen 2023-02-09 12:41:08 +01:00
cketti
487787bdd2 Simplify creation of FolderNameFormatter
`FolderNameFormatter` is only retrieving string resources. For this the global `Resources` instance will do. There's no need to pass instances retrieved from an `Activity`.
2023-02-08 16:09:32 +01:00
cketti
74f40dd0bd Respect "show contact names" setting in message details 2023-02-08 14:01:13 +01:00
cketti
836fb7dc69 Rename (and move) AddressFormatter to MessageViewRecipientFormatter
The way recipient names are displayed in the message view screen is subtly different from the other places where we display recipient names. Now the name reflects that.
2023-02-08 12:45:13 +01:00
cketti
b4b3dd3d53
Merge pull request #6636 from thundernest/prefer_encrypt_preference
Make `AutocryptPreferEncryptDialogFragment` a proper preference dialog
2023-02-08 10:59:50 +01:00
cketti
ae53f08a57
Merge pull request #6635 from thundernest/tweak_download_complete_message_button
Tweak appearance of "Download complete message" button
2023-02-08 10:57:57 +01:00
cketti
3315f56153 Make AutocryptPreferEncryptDialogFragment a proper preference dialog 2023-02-07 15:22:12 +01:00
cketti
cea4a51494 Tweak appearance of "Download complete message" button 2023-02-07 12:24:21 +01:00
cketti
125e1af9d6 Use Koin instead of custom by lazy code 2023-02-07 01:08:01 +01:00
cketti
f91f3e268b Add abstraction for Android's vibrator service 2023-02-07 01:08:01 +01:00
Wolf Montwe
1854a2c911
Change Kotlin code format 2023-02-03 17:23:57 +01:00
cketti
8e7685c44d Version 6.506 2023-02-03 12:10:15 +01:00
cketti
e4c452de3b Don't crash when there are not recipients to display 2023-02-01 22:15:54 +01:00
cketti
de5d1cd1c9 Version 6.505 2023-02-01 18:56:47 +01:00
cketti
e826ed8db7
Merge pull request #6618 from thundernest/message-view-redesign
Add the redesigned message view screen
2023-02-01 18:51:05 +01:00
cketti
677ef154f7 Remove now unused CryptoInfoDialog 2023-02-01 18:01:28 +01:00
cketti
80c68e1e3e Display crypto status in message details bottom sheet 2023-02-01 18:01:28 +01:00
cketti
c93f5ea799
Merge pull request #6612 from thundernest/message_counts
Refactoring: Message counts
2023-02-01 17:36:59 +01:00
cketti
adabe43efe Remove unused SearchField.SEARCHABLE 2023-02-01 14:40:00 +01:00
cketti
4d3a308b27 Remove unused strings 2023-01-27 20:04:04 +01:00
cketti
3e90f8b85e Remove unused methods 2023-01-27 19:50:46 +01:00
cketti
2df7c3301d Remove unused classes 2023-01-27 19:20:29 +01:00
cketti
d90800886d
Merge pull request #6604 from thundernest/more_MessageStore
Rewrite `MessagingController.loadMoreMessages()` to not use `LocalStore`
2023-01-27 14:02:34 +01:00
cketti
033fd2da3b Version 6.504 2023-01-27 12:01:32 +01:00
cketti
55b15a613d
Merge pull request #6610 from thundernest/fix_swipe_crash
Don't crash in swipe callbacks when a message list item no longer exists
2023-01-27 11:54:24 +01:00
cketti
2e35524d3e Don't crash in swipe callbacks when a message list item no longer exists 2023-01-26 14:02:53 +01:00
cketti
d342f6ee35 Avoid crash when opening drafts from the message list widget 2023-01-26 12:52:44 +01:00
cketti
4dbaf4aba0 Access database in background thread when loading more messages 2023-01-24 20:34:09 +01:00
cketti
9cb6859ad6 Load message details 2023-01-24 18:21:51 +01:00
cketti
a02946dee0 Version 6.503 2023-01-19 13:03:20 +01:00
cketti
2131bfcd05 Switch from AndroidX CardView to MaterialCardView 2023-01-19 12:26:24 +01:00
cketti
7dd0ed79c4 Merge branch 'main' into message-view-redesign 2023-01-18 12:56:25 +01:00
cketti
e2fbe4382c Update Koin components to version 3.3.2 2023-01-17 14:55:25 +01:00
cketti
6244ea6573 Change colors for selected/active messages in the message list
We can't use semi-transparent colors because the message list item backgrounds are drawn on top of other colors when using swipe actions. Instead, we mix the colors ourselves, e.g. 60% of ?attr/colorSecondaryVariant on ?attr/colorSurface
2023-01-17 14:17:57 +01:00
cketti
9bed86a636 Change themes to use shades of gray as primary color
Also use the primary color for the floating action button.
2023-01-17 14:17:57 +01:00
cketti
5db9401f55 Make colors of the floating action button part of the theme 2023-01-17 14:17:57 +01:00
cketti
8988b85e69 Make color of the selection check mark part of the theme 2023-01-17 14:17:57 +01:00
cketti
1052bd07c7 Rename some Gradle version catalog entries 2023-01-16 14:49:14 +01:00
Bastian Wilhelm
a3f6995a2e Migrate to Gradle's version catalog 2023-01-16 14:49:14 +01:00
cketti
3df7f26bdc Version 6.502 2023-01-16 11:58:07 +01:00
cketti
5c781d0bd4 Change label in settings to "show floating compose button" 2023-01-16 11:04:04 +01:00
cketti
81245668eb Add message detail bottom sheet
This commit is mainly about the bottom sheet mechanics of showing the toolbar when it is expanded. A place holder layout is used for the bottom sheet content.
2023-01-12 14:39:03 +01:00
cketti
2201cf34a6 Version 6.501 2023-01-09 19:06:19 +01:00
cketti
7cb741a7ff Only mark recent changes as read when dismissing snackbar via swipe 2023-01-09 18:49:34 +01:00
cketti
612f0b9477 Mark recent changes as read when dismissing snackbar 2023-01-09 16:29:20 +01:00
cketti
8dc395f052 Version 6.500 2023-01-06 18:51:58 +01:00
cketti
ecff33f847 Display error message when folder couldn't be found 2023-01-06 16:21:05 +01:00
cketti
fc3c9b3035 Add comments to components that are disabled by default 2023-01-06 16:08:56 +01:00
cketti
7963c3562d Remove RecyclerView padding when floating action button is disabled 2023-01-04 13:19:27 +01:00
Goooler
280ec9ccb1 Remove unnecessary "enabled" attributes in manifests 2023-01-04 13:03:33 +01:00
cketti
ec6be782cf Hide floating action button when ViewSwitcher is animating
Currently, animating between message list and message view is a lot like switching tabs. The guidelines state that a floating action button should not move in unison with the content.

See https://m2.material.io/components/buttons-floating-action-button#behavior
2023-01-04 11:14:57 +01:00
cketti
0cad7f3b47 Add setting to show floating action button on top of the message list 2023-01-04 11:14:57 +01:00
cketti
28907c5c13 Set colorOnSecondary to white in light theme 2023-01-04 11:14:57 +01:00
cketti
1409ee000f Add floating action button to message list screen 2023-01-04 11:14:57 +01:00
Bastian Wilhelm
ad5f87519c Don't move draft to Trash folder after sending 2022-12-27 20:36:28 +01:00
cketti
bdf0e3899b Ignore extraneous spaces when filtering the folder list 2022-12-21 17:24:51 +01:00
cketti
ef111af4ee Merge branch 'main' into message-view-redesign 2022-12-15 16:02:10 +01:00
mhfarzaneganbb
75e4be161a Remove font size settings for account list and folder list 2022-12-15 12:06:12 +01:00
cketti
dc7c5e8018 Use CoordinatorLayout for better SnackBar behavior
Anchoring the SnackBar to the CoordinatorLayout gives us:
- swipe to dismiss
- drawer being drawn on top of the SnackBar
2022-12-12 16:41:02 +01:00
cketti
462d64b6b8 Ignore WebView's scroll state when swipe gesture started in other view
We only consider a gesture as swipe gesture for moving to the previous or next message when the WebView can't be scrolled further in that direction. This is the correct behavior when the swipe gesture was started inside the WebView. However, the WebView's scroll state should be ignored when the swipe gesture was started e.g. in the message header. In those cases we always want to swipe to the next/previous message.
2022-12-12 15:55:14 +01:00
cketti
e71b4bcb90 Sort list of folders in account settings 2022-12-12 15:02:22 +01:00
Goooler
65e07cba13 Disable buildFeatures by default to speed up builds 2022-12-07 19:21:11 +01:00
Goooler
be9b4ef4aa Configure android extensions in subprojects 2022-12-07 19:04:23 +01:00
cketti
039cc957f4 Add RecipientNamesView to display the recipient names 2022-12-05 21:11:43 +01:00
cketti
a1a1a1d4fb Add DisplayRecipientsExtractor to extract recipient names from a message 2022-12-05 16:41:09 +01:00
cketti
399ff52840
Merge pull request #6497 from thundernest/mdc_theme
Switch to MaterialComponents themes
2022-11-28 19:00:23 +01:00
cketti
77756e56da Add support for search in recipient addresses 2022-11-28 18:16:45 +01:00
cketti
07a23d41b9 Tweak section headers in about screen
Use same style that is used in the settings screens.
2022-11-28 17:37:59 +01:00
cketti
72da6f8005 Tweak section headers in settings list screen
Use same style that is used in general/account settings screen.
2022-11-28 17:37:59 +01:00
cketti
bf5a03089f Version 6.400 2022-11-28 14:29:35 +01:00
cketti
1a34e49e91 Change appearance of "show remote images" button 2022-11-23 21:01:50 +01:00
cketti
5a43ff6607 Fix message header background color 2022-11-23 19:40:21 +01:00
cketti
715728bf47
Merge pull request #6484 from thundernest/mdc_theme
Switch to MaterialComponents themes
2022-11-23 19:26:08 +01:00
cketti
85762d5ec7 Display tooltips when long-pressing the menu actions 2022-11-22 17:30:46 +01:00
cketti
53aeb4224a Add functionality for primary reply action in message view 2022-11-22 17:03:37 +01:00
cketti
d3658804c6 Switch to MaterialComponents themes 2022-11-22 16:05:41 +01:00
cketti
047ef2db50 Add "line of death" 2022-11-21 14:28:32 +01:00
cketti
42d99739b5 Merge branch 'main' into message-view-redesign 2022-11-18 17:13:48 +01:00
cketti
4a7ac29657 Version 6.312 2022-11-15 15:35:05 +01:00
cketti
e2672cb0dd Update translations 2022-11-15 13:33:49 +01:00
cketti
017fc8e59f Respect font size settings in message view
- Remove now unnecessary settings.
- Rearrange items in the settings screen to match the display order in the message view screen.
- Change setting name from "To" to "Recipients".
2022-11-14 17:54:20 +01:00
cketti
be17b94cf4 Don't enable archive swipe action in archive folder 2022-11-14 14:28:52 +01:00
cketti
97ec70a631 Reset swiped view when moving an item 2022-11-14 14:24:05 +01:00
cketti
e17459f210 Reset swiped views when canceling a swipe action in the confirmation dialog 2022-11-14 14:18:21 +01:00
cketti
30a2126fcb Mark view when swipe starts so ItemAnimator doesn't interfere 2022-11-14 13:28:31 +01:00
cketti
789fbe4d43 Deselect message during swipe
When swiping a selected message we remove the selection state at the start and restore it afterwards if the list item isn't removed. Except when the swipe action is "toggle selection". Then we keep the current selection state while the list item is dragged.
2022-11-11 14:00:11 +01:00
cketti
273d0b433d Handle animating a swiped view back to its start position inside ItemTouchHelper 2022-11-10 21:03:38 +01:00
cketti
ecdffa15a4 Avoid crash when one of the swipe actions is "None" 2022-11-09 11:48:42 +01:00
cketti
ebb54c26cd Use width of swipe action text to calculate maximum swipe distance 2022-11-09 11:48:42 +01:00
cketti
f75101dfc1 Add support for swipe actions not animating the view all the way off the screen 2022-11-09 11:48:42 +01:00
cketti
944595f905 Use our own copy of ItemTouchHelper 2022-11-09 11:48:42 +01:00
cketti
04d97b4e2e Don't crash when trying to remove certificates for incomplete accounts 2022-11-07 17:03:49 +01:00
cketti
73d9100087 Make AccountManager.getAccountsFlow() only return fully set up accounts 2022-11-07 16:39:03 +01:00
cketti
647340e1e8 Swipe actions: Display action name next to the icon 2022-11-02 11:57:38 +01:00
cketti
bcf89ed0c3 Version 6.311 2022-11-01 12:19:51 +01:00