Commit graph

1304 commits

Author SHA1 Message Date
Wolf-Martell Montwé
012c8bd3b4
Fix low hanging detekt violations 2023-10-10 14:26:11 +02:00
Wolf-Martell Montwé
6251b98486
Enable UseLet rule 2023-10-10 13:34:46 +02:00
cketti
6393a4ece7
Merge pull request #7212 from thundernest/convert_to_kotlin
Convert `SettingsImporterTest` to Kotlin
2023-10-10 12:05:16 +02:00
cketti
a75c7abbdf Combine settings for navigation action after removing a message
After the user deletes or moves a message in the message view screen, the available navigation options are:
- Return to message list
- Show previous message
- Show next message

We get rid of the "magic" mode that tries to keep going in the direction in which the user was moving previously.
2023-10-06 11:03:28 +02:00
cketti
67839f3f14 Extract SettingsUpgrader implementations to separate files 2023-10-05 18:40:09 +02:00
cketti
7989c67c34 Convert SettingsImporterTest to Kotlin 2023-10-03 19:50:54 +02:00
cketti
6650f8f620 Rename .java to .kt 2023-10-03 19:50:53 +02:00
cketti
0a99643a7a Update DisplayHtml to use proper dark theme background color 2023-09-26 17:21:29 +02:00
cketti
d83259a5ee HTML-encode header field values when displaying message/rfc822 parts 2023-09-18 18:15:11 +02:00
Wolf-Martell Montwé
8549bfc554
Add newAccount method to preferences to allow creation with given UUID 2023-09-15 11:24:17 +02:00
Wolf-Martell Montwé
6a19427a80
Remove deprecation warning of K9 class, as it's not true anymore and spamming the build output 2023-09-13 15:43:40 +02:00
Wolf-Martell Montwé
e9535ecdaa
Bump Spotless 6.14.0 -> 6.21.0 and KtLint 0.48.2 -> 0.50.0, and reformat/fix code 2023-09-06 18:13:23 +02:00
Wolf-Martell Montwé
2e886a7255
Bump Mockito 5.3.1 -> 5.4.0 and Mockito Kotlin 4.1.0 -> 5.1.0 2023-09-06 18:13:22 +02:00
Wolf-Martell Montwé
cafc786367
Add error messages to allow better import debugging 2023-08-29 19:10:37 +02:00
cketti
397a06131e Add "Show only subscribed folders" setting to folders section 2023-08-16 12:04:05 +02:00
cketti
f35603e14c
Merge pull request #7115 from thundernest/fix_IdentityHeaderBuilder
Write empty string to identity header field if name is null
2023-08-08 20:15:33 +02:00
cketti
6ff3d4087f
Merge pull request #7113 from thundernest/wrap_pasted_url
Wrap pasted URI in angle brackets
2023-08-08 20:09:04 +02:00
cketti
fee88a4b88 Write empty string to identity header field if name is null 2023-08-08 19:10:23 +02:00
cketti
e5e2a9bafb Add UriMatcher.isValidUri() 2023-08-07 19:32:25 +02:00
cketti
09240fec56 Implement AccountRemoverWorker.getForegroundInfo()
This is required to run expedited jobs on older Android versions.
2023-08-07 18:17:32 +02:00
cketti
4c8261089b Write error message to log when skipping message during send 2023-06-24 17:36:20 +02:00
Wolf-Martell Montwé
5dfb37bfb0
Remove OAuth dependency from app.core 2023-06-23 11:52:13 +02:00
Wolf-Martell Montwé
03772c6a5c
Rename to SuggestServerName 2023-06-23 11:42:28 +02:00
Wolf-Martell Montwé
bbfc232975
Add feature:account:oauth module and move ServerNameSuggester there 2023-06-23 11:24:45 +02:00
Wolf-Martell Montwé
9e0f1bd815
Resolve app.core dependency blocking oauth extraction 2023-06-20 15:17:45 +02:00
Wolf-Martell Montwé
141dd0974c
Resolve app.testing dependency blocking oauth extraction 2023-06-20 14:57:44 +02:00
cketti
656a9d3862 Use relaxed mode to parse email addresses from message headers 2023-06-15 19:32:56 +02:00
cketti
fa487b2016 Always use extension function to create EmailAddress instance 2023-06-01 14:29:28 +02:00
Simon Arlott
e731d08f3b
Don't make identity descriptions unique on import
Identity descriptions don't have to be unique so they shouldn't be modified
when imported to make them unique.

This also means that identities with no description can be imported without
giving them one (e.g. "Imported", "Imported (1)", "Imported (2)").
2023-05-27 14:10:54 +01:00
Simon Arlott
d105ba0fbb
Export identities that have no description
Identities must have an email address but all of the other fields are
optional, so email address should be used to determine identity keys.

Fixes #6932
2023-05-27 14:10:53 +01:00
cketti
ef498c60e4 Update assertk to version 0.26 2023-05-16 17:20:25 +02:00
cketti
5498567bf2 Switch assertions to assertk 2023-05-14 13:00:28 +02:00
cketti
7d7e585b03 Merge branch '6.6-MAINT' 2023-05-12 12:22:52 +02:00
cketti
26fab0dff4 Change default reply action from "reply all" to "reply" 2023-05-09 13:56:36 +02:00
cketti
182e2c217c Fix escaping commas in buildOAuthBearerInitialClientResponse() 2023-05-08 15:46:04 +02:00
cketti
d407f18b11
Merge pull request #6878 from thundernest/check_UriParser_startPos_argument
Explicitly check `startPos` parameter in `UriParser.parseUri()` implementations
2023-05-08 11:37:39 +02:00
cketti
3de2d3af40 Validate startPos parameter in UriParser.parseUri() implementations 2023-05-05 17:32:53 +02:00
cketti
0644407ff6 Convert HttpUriParserTest to Kotlin 2023-05-05 17:12:52 +02:00
cketti
745ebd96a0 Rename .java to .kt 2023-05-05 17:09:25 +02:00
cketti
ff188cdfb5 Remove WebDAV code 2023-05-04 22:14:00 +02:00
Self Not Found
f2ce1fe344 IMAP: Add support for sending ID command with app name 2023-04-26 14:58:44 +02:00
Wolf Montwé
71079908aa
Bump Gradle 8.0.2 -> 8.1.1 and remove suppress dsl scope violation 2023-04-25 17:21:58 +02:00
cketti
975049ef71
Merge pull request #6841 from thundernest/fix_export_settings
Don't fail when exporting an identity without a sender name
2023-04-24 13:45:48 +02:00
cketti
9e7ee7215d Don't fail when exporting an identity without a sender name 2023-04-24 13:35:50 +02:00
cketti
63ba1f6944 Increase number of active notification to 9
This way users can know that when the number 9 is displayed in the group summary, there's more notifications than the 8 they can currently see.
2023-04-21 17:46:55 +02:00
cketti
40d87d574b MessageList: Don't crash when being launched with invalid EXTRA_SEARCH value 2023-04-18 14:55:35 +02:00
cketti
e621d3f693 Add support for signature delimiters using non-breaking space in HTML parts 2023-04-08 15:27:33 +02:00
cketti
b5964f32f2 Change DefaultMessageCountsProvider to support LocalSearch.conditions = null 2023-03-21 18:34:21 +01:00
cketti
1ccbfea756 Add failing test for DefaultMessageCountsProvider.getMessageCounts(Account) 2023-03-21 18:34:21 +01:00
Wolf Montwé
d1f5b0222b
Change :app:core module to assertk 2023-03-21 14:14:39 +01:00
Wolf Montwé
e98ceb70a5
Change UriMatcherTest to Kotlin 2023-03-21 14:14:23 +01:00
Wolf Montwé
66e0424fdf
Rename UriMatcherTest.java to UriMatcherTest.kt 2023-03-21 14:14:23 +01:00
cketti
f17fb9fe17 Remove unused method 2023-03-15 17:28:58 +01:00
Wolf-Martell Montwé
9900fd4394
Merge pull request #6757 from thundernest/change_truth_to_legacy
Change truth testing library to legacy
2023-03-14 12:38:32 +00:00
Wolf Montwé
00b7bf45d7
Change truth testing library to legacy and only allow usage in old modules 2023-03-14 12:20:55 +01:00
cketti
23981c1af7 Add font size setting for account name in message view 2023-03-13 18:26:59 +01:00
Wolf-Martell Montwé
d88ea3752d
Merge pull request #6732 from thundernest/remove_precondition
Remove Preconditions
2023-03-09 14:03:28 +00:00
Wolf Montwé
532642d8db
Remove Preconditions 2023-03-09 14:02:02 +01:00
Wolf Montwé
9cdf3e2b7a
Add ContactRepository 2023-03-09 13:48:06 +01:00
Wolf Montwé
3ed19f0011
Move CursorExtensions to :core:android:common module 2023-03-09 12:14:28 +01:00
Wolf Montwé
8b049982a9
Add ContactDataSource and Contact entity 2023-03-09 12:10:25 +01:00
Wolf Montwé
5e09e067b0
Add email value type 2023-03-07 18:12:38 +01:00
Wolf Montwé
979240b6e1
Remove getInstance as instance should be controlled by dependency injection 2023-03-07 13:18:08 +01:00
Wolf Montwé
264deb98f2
Change MessageHelperTest to Kotlin 2023-03-07 09:40:32 +01:00
Wolf Montwé
5c7ede27ca
Rename MessageHelperTest.java to MessageHelperTest.kt 2023-03-07 09:40:32 +01:00
Wolf Montwé
b7bfb4006f
Remove unused context property and toMe method 2023-03-07 09:40:32 +01:00
Wolf Montwé
9fe1983c1a
Change MessageHelper to Kotlin 2023-03-07 09:40:32 +01:00
Wolf Montwé
0c299aeb7d
Rename MessageHelper from .java to .kt 2023-03-07 09:40:31 +01:00
Wolf Montwé
5699ecadb7
Remove getInstance as instance should be controlled by dependency injection 2023-03-06 16:19:37 +01:00
Wolf Montwé
0780c423fb
Change Contacts to Kotlin 2023-03-06 13:16:44 +01:00
Wolf Montwé
38cb881377
Rename Contacts to .kt 2023-03-06 11:31:12 +01:00
Wolf Montwé
be5894e743
Move EmptyCursor to core:android:common 2023-03-02 14:44:53 +01:00
Wolf Montwé
58e6f97580
Add common Android module to core 2023-03-02 14:38:43 +01:00
Wolf Montwé
59541c0d6b
Move Cache to core common module 2023-03-02 14:38:43 +01:00
Wolf Montwé
28e3f62a4e
Change Clock to kotlinx.datetime.Clock 2023-03-02 11:21:32 +01:00
Wolf Montwé
dd5d550c58
Change EmptyCursor to Kotlin 2023-03-01 15:47:06 +01:00
Wolf Montwé
0d19bcee9a
Rename EmptyCursor from .java to .kt 2023-03-01 15:43:54 +01:00
cketti
30c4f94b30 Add setting for message list density 2023-02-27 18:27:20 +01:00
Wolf Montwé
22d8e4b924
Change build files from Groovy to Kotlin 2023-02-23 14:52:16 +01:00
Wolf Montwé
96e2784b22
Rename build.gradle files to build.gradle.kts 2023-02-23 14:52:15 +01:00
Wolf Montwé
cab1c71524
Cleanup remaining code style issues for Kotlin sources 2023-02-17 16:14:14 +01:00
Wolf Montwé
29d5220995
Add trailing comma allowance to code style 2023-02-17 16:14:13 +01:00
Wolf Montwé
f88613bf23
Change to Android library build plugin 2023-02-16 15:58:43 +01:00
cketti
caa6a848ff Limit summary notification actions to active notifications 2023-02-14 11:48:11 +01:00
Wolf-Martell Montwé
90539b5e48
Merge pull request #6655 from thundernest/add_cache
Add Cache
2023-02-14 10:56:57 +01:00
Wolf Montwé
77a295f7ed
Remove doubled test 2023-02-14 10:45:28 +01:00
Wolf Montwe
7a77fc43b8
Add Cache 2023-02-13 16:22:41 +01:00
Wolf Montwé
f46b754373
Add ContactIntentHelper and remove functionality from Contacts 2023-02-10 17:48:55 +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
Wolf Montwe
1854a2c911
Change Kotlin code format 2023-02-03 17:23:57 +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
c93f5ea799
Merge pull request #6612 from thundernest/message_counts
Refactoring: Message counts
2023-02-01 17:36:59 +01:00
cketti
dd89dee489 Convert methods in AccountSearchConditions to extension functions 2023-02-01 14:40:00 +01:00
cketti
ef583ba620 Rewrite MessageCountsProvider to use MessageStore 2023-02-01 14:40:00 +01:00
cketti
adabe43efe Remove unused SearchField.SEARCHABLE 2023-02-01 14:40:00 +01:00
cketti
5e17829436 Rewrite MessageCountsProvider.getUnreadMessageCount() to not use LocalStore 2023-02-01 14:40:00 +01:00
cketti
4cc1643643 Remove message count functionality from MessagingController 2023-02-01 14:39:59 +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