Commit graph

494 commits

Author SHA1 Message Date
cketti
128e06e42a Prepare for version 5.902 2021-09-17 12:04:30 +02:00
cketti
e4b585bcc2 Version 5.901 2021-09-17 11:47:20 +02:00
cketti
fb8f98486f Remove Account.isAvailable() 2021-09-17 10:47:03 +02:00
cketti
219648f142 Get rid of mount/unmount receivers for external storage
We no longer support storing the database on "external storage". Even when migrating old databases chances are very slim "external storage" actually is a removable storage device.
2021-09-17 10:01:14 +02:00
cketti
f52c1e332e Prepare for version 5.901 2021-09-09 13:48:54 +02:00
cketti
c4cac8c5e8 Version 5.900 2021-09-09 13:37:54 +02:00
cketti
f2f8e4d0f3 Remove FolderRepositoryManager
Instead we use one FolderRepository instance and pass Account as parameter to individual functions.
2021-08-26 22:34:57 +02:00
cketti
5bba535699 Convert notification classes to Kotlin 2021-08-26 01:36:25 +02:00
cketti
ed6cbe1c4b Rename .java to .kt 2021-08-26 01:35:18 +02:00
cketti
652d52b6a6 Add setting to suppress notifications for chat messages
Messages containing a 'Chat-Version' header field will not generate notifications when this setting is enabled.
2021-08-18 11:17:06 +02:00
cketti
6792f27127 Prepare for version 5.900 2021-08-12 13:17:04 +02:00
cketti
acbeff5b98 Version 5.803 2021-08-12 13:10:10 +02:00
cketti
3a6ca8dfd5 Prepare for version 5.803 2021-08-04 16:49:06 +02:00
cketti
7a36187170 Version 5.802 2021-08-04 16:08:58 +02:00
cketti
58a7b362ae Prepare for version 5.802 2021-07-30 19:49:32 +02:00
cketti
199db3141e Version 5.801 2021-07-30 19:18:17 +02:00
cketti
ac4cb37ea7 Add network security config to allow user-installed CAs 2021-07-29 11:45:17 +02:00
cketti
b8bfde6e06 Prepare for version 5.801 2021-07-29 11:44:34 +02:00
cketti
db79174527 Version 5.800 2021-07-24 14:43:46 +02:00
cketti
8038ef4514 Version 5.741 2021-07-22 21:10:23 +02:00
cketti
591af9cdd5 Version 5.740 2021-07-16 17:57:50 +02:00
cketti
26c64806f2 Add "Push Info" screen 2021-07-15 00:20:48 +02:00
cketti
da7c0b7cf9 Prepare for version 5.740 2021-07-10 16:01:43 +02:00
cketti
279b084f76 Version 5.739 2021-07-10 15:35:07 +02:00
cketti
ec1f3c3722 Prepare for version 5.739 2021-07-08 23:39:11 +02:00
cketti
069b357f95 Version 5.738 2021-07-08 23:19:03 +02:00
cketti
cac4874f25 Fix AndroidAlarmManager dropping alarms
It was possible that the 'callback' property was set to 'null' after another alarm was already scheduled. This meant the callback function wasn't called when the next alarm went off.
2021-07-08 18:49:30 +02:00
cketti
0073913279 Show snackbar in MessageList to get to "What's new" when the app was updated 2021-07-03 14:32:40 +02:00
cketti
4f7fb64117 Prepare for version 5.738 2021-06-26 23:57:28 +02:00
cketti
7b10d6bb3f Version 5.737 2021-06-26 23:53:30 +02:00
cketti
00f1d684e9 Prepare for version 5.737 2021-06-24 15:54:45 +02:00
cketti
eb8fa56860 Version 5.736 2021-06-24 15:46:42 +02:00
cketti
d410ad3576 Prepare for version 5.736 2021-06-24 14:01:36 +02:00
cketti
dfcea339a3 Version 5.735 2021-06-24 13:36:05 +02:00
cketti
ebbe02c057 Add ImapPushConfigProvider 2021-06-23 15:34:31 +02:00
cketti
190242943c
Merge pull request #5352 from k9mail/alarm_manager
Add implementation for AndroidAlarmManager
2021-06-19 16:06:37 +02:00
cketti
f7277c911e Add implementation for AndroidAlarmManager 2021-06-18 20:29:35 +02:00
cketti
7a940240c3 Add BootCompleteReceiver to start PushController on device boot 2021-06-18 19:34:28 +02:00
cketti
a74c206a0c Add implementation for BackendIdleRefreshManager 2021-06-16 15:04:01 +02:00
cketti
c8808ae447 Add ImapBackendPusher that manages multiple ImapFolderPusher instances 2021-06-13 00:51:23 +02:00
cketti
46a2c351d5 Add foreground service for Push 2021-06-12 17:04:45 +02:00
cketti
f3b7cd7d14 Add notification channel for a Push foreground service 2021-06-11 18:33:09 +02:00
cketti
296ba92221
Merge pull request #5333 from k9mail/imap_interfaces 2021-06-10 21:28:01 +02:00
cketti
94f630cf88 Introduce ImapStore interface 2021-06-10 21:00:58 +02:00
cketti
db0bd06f21 Re-apply the locale override to the configuration if necessary 2021-06-05 14:18:00 +02:00
cketti
2598d3e199 Remove "Notification opens unread messages" option 2021-06-01 09:45:12 +02:00
cketti
e32c497f8f Prepare for version 5.735 2021-05-01 00:14:06 +02:00
cketti
9c1c464dc3 Version 5.734 2021-04-30 23:54:36 +02:00
cketti
5444d8be3a Remove explicit dependency on Kotlin's standard library 2021-04-22 03:54:15 +02:00
cketti
632d8f3cb7 Upgrade Mockito-Kotlin to 3.1.0 2021-04-22 03:54:15 +02:00
cketti
0e7ec3846d Upgrade Koin to 2.2.2 2021-04-22 03:54:15 +02:00
cketti
a61429e8c5 Rewrite custom app language feature
Add AppLanguageManager that notifies listeners when the app language has been changed. K9Activity uses this mechanism to restart() on language changes. The Application object will update its configuration.

Instead of using the deprecated Resources.updateConfiguration() we now use LocaleContextWrapper (in combination with AppCompat) to override the locale in the configuration.
2021-04-20 21:41:18 +02:00
cketti
cc2413a180
Merge pull request #5209 from k9mail/convert_to_kotlin 2021-03-24 15:03:05 +01:00
cketti
b66662918c Prepare for version 5.734 2021-03-23 19:36:30 +01:00
cketti
967cc5684b Version 5.733 2021-03-23 19:23:59 +01:00
cketti
370481236a Convert 'Preferences' to Kotlin 2021-03-22 22:57:33 +01:00
cketti
374a96ec9e Prepare for version 5.733 2021-03-04 18:57:08 +01:00
cketti
4feb51278b Version 5.732 2021-03-04 17:58:03 +01:00
cketti
e642ff2896 Remove Kotlin Android extensions plugin
See https://youtrack.jetbrains.com/issue/KT-42121
2021-03-02 17:58:20 +01:00
cketti
9b53ae26d6 Rename 'NotificationDeleteConfirmation' to 'DeleteConfirmationActivity' 2021-03-01 22:21:50 +01:00
cketti
6c3d71c0fa Move 'NotificationDeleteConfirmation' to new package 2021-03-01 22:21:12 +01:00
cketti
b83686e760 Prepare for version 5.732 2021-02-23 16:45:18 +01:00
cketti
d3e881e032 Version 5.731 2021-02-23 16:16:41 +01:00
cketti
3cd28c5b2c
Merge pull request #5152 from ByteHamster/message-header-view
Show message headers in fragment
2021-02-23 14:25:10 +01:00
cketti
c296a0d8d0 Clean up code 2021-02-20 15:32:34 +01:00
ByteHamster
973c5ed02b Show message headers in fragment 2021-02-20 13:28:15 +01:00
cketti
b4f9ea29d8 Add Malayalam translation 2021-02-19 14:17:38 +01:00
cketti
68be2ba75e Prepare for version 5.731 2021-02-16 20:15:17 +01:00
cketti
c452e588af Version 5.730 2021-02-16 17:21:43 +01:00
cketti
17f447705e Update translations
Add languages: be, en_GB
2021-02-16 15:26:31 +01:00
cketti
1659363805 Prepare for version 5.730 2021-02-12 18:53:00 +01:00
cketti
eaa766a1a7 Version 5.729 2021-02-12 18:00:46 +01:00
cketti
06ae7cc9d4 Prepare for version 5.729 2021-02-10 15:10:06 +01:00
cketti
4d9c8e6b17 Version 5.728 2021-02-10 14:51:25 +01:00
cketti
08d6d9bebc Delete remaining store/transport URI functionality 2021-02-01 17:30:21 +01:00
cketti
de2560b90b Remove Account.storeUri and Account.transportUri
The URIs are still used as serialization format when saving settings
2021-02-01 12:54:02 +01:00
cketti
10dec2253a Prepare for version 5.728 2021-01-25 16:29:12 +01:00
cketti
56ce36167c Version 5.727 2021-01-25 16:17:58 +01:00
cketti
fae9255bca Update/fix notification icons 2021-01-23 04:26:39 +01:00
cketti
5eeb4b56be Unify icon vector drawables for dark and light themes 2021-01-23 04:26:39 +01:00
cketti
8b5ed91629 Prepare for version 5.727 2021-01-06 07:52:11 +01:00
cketti
d29085774d Version 5.726 2021-01-06 07:42:43 +01:00
cketti
babf305f92 Prepare for version 5.726 2020-11-18 19:57:43 +01:00
cketti
1f586eb1aa Version 5.725 2020-11-18 19:47:26 +01:00
cketti
1233675aa0 Prepare for version 5.725 2020-11-01 15:48:44 +01:00
cketti
ea01c92d1c Version 5.724 2020-11-01 15:44:13 +01:00
cketti
f672183bee Prepare for version 5.724 2020-10-31 19:16:27 +01:00
cketti
2f564e991b Version 5.723 2020-10-31 19:11:05 +01:00
cketti
fc67bc40b5 Prepare for version 5.723 2020-10-21 01:26:29 +02:00
cketti
78a70c305b Version 5.722 2020-10-21 01:11:58 +02:00
cketti
ba8834d3f7 Make using LeakCanary in debug builds optional 2020-10-18 16:27:14 +02:00
cketti
1873593dc5 Format Kotlin code 2020-10-16 16:41:19 +02:00
cketti
ed8009d9fa Update ktlint-gradle to 9.4.1, ktlint to 0.39.0
Apply ktlint-gradle plugin to all Gradle subprojects.
2020-10-16 14:27:23 +02:00
cketti
5f05b8bb07 Show sender/recipient name in message list based on folder
The recipient name is shown for messages in the Sent, Drafts, and Outbox folders. For messages in all other folders the sender name is shown.
2020-10-12 01:48:36 +02:00
cketti
8685da31d4 Prepare for version 5.722 2020-10-07 17:51:43 +02:00
cketti
e7bcfe7e3e Version 5.721 2020-10-07 17:07:23 +02:00
cketti
378c90b46e Prepare for version 5.721 2020-10-06 20:29:06 +02:00
cketti
6c097b47da Version 5.720 2020-10-06 20:21:55 +02:00
cketti
08b6952382 Only keep resources for languages supported in K-9 Mail
This will strip strings of unsupported languages provided by libraries.
2020-10-06 19:41:18 +02:00
cketti
3133573139 Rewrite Share functionality in message view screen
The shared text now contains subject, date, sender, and recipients in addition to the message body text.
2020-10-05 05:38:54 +02:00
cketti
d38dd84e88 Exclude 'DebugProbesKt.bin' from APK 2020-10-04 21:51:17 +02:00
cketti
145c048326 Prepare for version 5.720 2020-10-04 20:19:45 +02:00
cketti
d541eaef51 Version 5.719 2020-10-04 19:12:01 +02:00
Alex Dawson
c671c84191 Persist state in unread widget configuration during screen rotation 2020-10-03 18:11:14 +02:00
cketti
753e03aa22 Prepare for version 5.719 2020-08-18 16:49:52 +02:00
cketti
c82b2f827e Version 5.718 2020-08-18 16:27:19 +02:00
cketti
988966d190 Update Glide to 4.11.0 2020-07-17 23:37:17 +02:00
cketti
445cd12651 Remove unnecessary JDOM dependencies 2020-07-15 18:36:27 +02:00
cketti
d2f07e6ffe Update Leak Canary to 2.4 2020-07-15 17:51:31 +02:00
cketti
30eca8cc30 Update Android Gradle Plugin to 4.0.1 2020-07-15 01:51:13 +02:00
Tobias Preuss
117af49699 Keep cascaded if because code is easier to read. 2020-07-08 19:22:29 +02:00
Tobias Preuss
9c6d08142a Infer type. 2020-07-08 13:58:23 +02:00
cketti
ace8bc1244
Merge pull request #4847 from runningcode/no/api
Use api instead of implementation.
2020-06-24 03:22:35 +02:00
cketti
fbaa4ce037 Make openpgp-api module available for tests in app modules 2020-06-23 16:29:46 +02:00
cketti
fae2b54394 Prepare for version 5.718 2020-06-19 22:01:45 +02:00
cketti
4e35ad736d Version 5.717 2020-06-19 21:54:44 +02:00
cketti
1a96ef4641 Remove Folder.serverId property 2020-06-13 02:02:56 +02:00
cketti
e5d6bf1cc6 Change UnreadWidgetDataProvider to not get FolderDetails 2020-06-13 02:02:56 +02:00
cketti
00fc6708cc Change MessagingController.deleteMessagesSynchronous() to use folder ID 2020-06-12 18:53:11 +02:00
cketti
4976d4e178 Change MessagingListener.folderStatusChanged() to use folder ID 2020-06-12 18:53:11 +02:00
cketti
3ffa488e6c
Merge pull request #4823 from k9mail/always_notify_for_inbox
Don't skip notifications if the Inbox is configured as another special folder
2020-06-12 17:03:26 +02:00
NITIN DUDIA
32a6c8fde1
Update unread_widget_configuration.xml
Allow folder selection only after a account is selected.
2020-06-05 19:57:27 +05:30
cketti
20b473b4d8 Don't skip notifications if the Inbox is configured as another special folder 2020-06-05 01:39:44 +02:00
cketti
46747bf114 Prepare for version 5.717 2020-06-04 03:24:38 +02:00
cketti
fd59bee315 Version 5.716 2020-06-04 03:13:49 +02:00
cketti
f1a08e54f6 Add logging to K9NotificationStrategy 2020-06-02 13:21:32 +02:00
cketti
607d650bea Disable minify for debug builds
Hopefully this will make debug builds faster.
2020-05-29 21:35:41 +02:00
cketti
b9eba6971f Prepare for version 5.716 2020-05-27 02:01:47 +02:00
cketti
405b207449 Version 5.715 2020-05-27 01:24:35 +02:00
cketti
ccfbc6e8eb Exclude more things via packagingOptions 2020-05-27 00:42:38 +02:00
cketti
21c14c49bd Add :app:ui:base module and move K9Activity to it 2020-05-19 18:16:15 +02:00
cketti
dc82a53713 Rename :app:ui to :app:ui:legacy
The goal is to split this module into smaller, more focused modules.
2020-05-19 18:16:15 +02:00
cketti
c0b9db4643
Merge pull request #4769 from k9mail/fix_special_local_folders
Fix special local folders
2020-05-19 18:15:43 +02:00
cketti
451a2b2d03 Add LeakCanary 2020-05-16 21:06:06 +02:00
cketti
981e12965a Add isLocalOnly property to Folder 2020-05-15 19:55:26 +02:00
cketti
23fb90605c Prepare for version 5.715 2020-05-14 00:12:55 +02:00
cketti
842ee9ed2a Version 5.714 2020-05-13 23:50:45 +02:00
cketti
f5eb16c844 Use AppCompat's 'srcCompat' attribute to reference drawables
This way AppCompat's VectorDrawable implementation will be used. It works
around a couple of platform bugs.
We can't use this mechanism in layouts that we don't inflate ourselves,
e.g. the message list widget layout.
2020-05-09 17:16:26 +02:00
cketti
5d6d64f00b Prepare for version 5.714 2020-05-08 23:24:34 +02:00
cketti
03369f3c27 Version 5.713 2020-05-08 23:18:57 +02:00
cketti
5a4a269926 Prepare for version 5.713 2020-05-08 15:03:49 +02:00
cketti
a236c35621 Version 5.712 2020-05-08 14:58:03 +02:00
cketti
c966b7d49d Prepare for version 5.712 2020-05-08 11:07:03 +02:00
cketti
04e9714284 Version 5.711 2020-05-08 10:39:57 +02:00
cketti
5857f18203 Fix displaying the folder name in unread widget title 2020-05-07 17:10:12 +02:00
cketti
d15bfab01c Rewrite unread widget configurations created by old app versions 2020-05-07 17:10:10 +02:00
cketti
8b5055ec40 Update unread widgets from a background thread 2020-05-07 11:36:08 +02:00
cketti
7f80947740 Replace Account.getSentFolder() with Account.getSentFolderId() 2020-05-04 16:31:00 +02:00
cketti
253f4c85ff Replace Account.getSpamFolder() with Account.getSpamFolderId() 2020-05-04 16:31:00 +02:00
cketti
c943c03879 Replace Account.getDraftsFolder() with Account.getDraftsFolderId() 2020-05-04 16:31:00 +02:00
cketti
c56ae6dcab Replace Account.getTrashFolder() with Account.getTrashFolderId() 2020-05-04 16:31:00 +02:00
cketti
c6d96b2b34 Replace Account.getInboxFolder() with Account.getInboxFolderId()
In some instances the check for the Inbox folder could be removed.
We no longer allow one folder to have multiple roles, e.g. Inbox + Drafts.
2020-05-04 16:31:00 +02:00
cketti
010c0b42ef Remove folderServerId from MessageReference 2020-05-04 16:31:00 +02:00
cketti
9291881b6b Switch LocalSearch and everything connected to it to using folder IDs 2020-05-04 16:31:00 +02:00
cketti
dde0ef9820 Change MessageProvider delete URI to use folder ID instead of server ID 2020-05-04 15:01:29 +02:00
cketti
70841e40d7 Change K-9 Mail message URI to use folder ID instead of server ID 2020-05-04 15:01:29 +02:00
cketti
1c55ffda51 Change MessageReference to also store folder database ID 2020-05-04 15:01:29 +02:00
cketti
767f7e0efe Remove StoreConfig 2020-05-01 05:42:50 +02:00
cketti
02049c5882 Create DraftsFolderProvider 2020-05-01 05:38:37 +02:00
cketti
82db38bd08 Create ImapStoreConfig 2020-05-01 05:30:34 +02:00
cketti
60f4c60ae0 Prepare for version 5.711 2020-04-24 05:49:59 +02:00
cketti
fa8b8dbdc3 Version 5.710 2020-04-24 05:49:27 +02:00
cketti
c8a2319699 Prepare for version 5.710 2020-04-18 18:00:29 +02:00
cketti
ec0ce5ed1d Version 5.709 2020-04-18 17:38:07 +02:00
cketti
e0b1d77650 Remove BootReceiver 2020-04-06 19:22:19 +02:00
cketti
2a78418911 Remove old Push code 2020-04-05 20:08:29 +02:00
cketti
89fc8b966d Prepare for version 5.709 2020-03-20 00:28:23 +01:00
cketti
b558dc855f Version 5.708 2020-03-20 00:02:38 +01:00
cketti
defb055472 Remove code to mark contacts as read and WRITE_CONTACTS permission
See https://source.android.com/devices/tech/config/contacts-affinities
2020-03-19 17:31:14 +01:00
cketti
84558bd2d7 Add UnreadWidgetConfigurationFragment 2020-03-12 03:54:26 +01:00
cketti
c4ab630161 Remove 'androidTest' tests
We don't regularly run them and most of them don't even compile anymore.
2020-03-11 18:01:41 +01:00
cketti
33282c0895 Prepare for version 5.708 2020-03-06 15:57:27 +01:00
cketti
9909e8f290 Version 5.707 2020-03-06 15:50:07 +01:00
cketti
17967c1af9
Merge pull request #4590 from k9mail/integrate_font_size_settings
Integrate font size settings into general_settings.xml
2020-03-06 15:45:48 +01:00
cketti
3a4d170755 Integrate font size settings into general_settings.xml 2020-03-05 15:19:17 +01:00
cketti
0e13c58550 Extract 'folder settings' screen to FolderSettingsFragment 2020-03-04 21:49:10 +01:00
cketti
00086bd15e Update Koin to 2.1.1 2020-03-04 14:39:30 +01:00
cketti
9d536163e0 Prepare for version 5.707 2020-03-03 19:46:54 +01:00
cketti
d83d63663d Version 5.706 2020-03-03 19:27:11 +01:00
cketti
085332896e
Merge pull request #4556 from ByteHamster/metrics-opt-out
Opt out of WebView metrics
2020-02-21 15:07:15 +01:00
ByteHamster
f8cf52a59c Opt out of WebView metrics 2020-02-20 21:58:26 +01:00
cketti
99b5f38a9c Make SizeFormatter.formatSize() an instance method 2020-02-09 00:20:49 +01:00
cketti
add8a88b87 Prepare for version 5.706 2020-02-06 23:18:23 +01:00
cketti
af7887d20d Version 5.705 2020-02-06 23:02:59 +01:00
cketti
aa08570a45 Make sure FolderNameFormatter uses the correct Resources instance
This is necessary so special folder names are displayed in the language
configured by the user under general settings.
2020-01-28 17:22:12 +01:00
cketti
9845b76338 Only use K9 themes in AndroidManifest.xml 2020-01-27 02:39:28 +01:00
cketti
aeef338efd Remove unread count from MessagingListener.folderStatusChanged() 2020-01-22 17:02:16 +01:00
cketti
0cd7164c2e Remove MessagingListener.messageDeleted()
Only home screen widgets used the callback to update themselves. But
they're also updating when folderStatusChanged() is invoked. So we can
safely get rid of messageDeleted().
2020-01-22 16:52:25 +01:00
Henry
28b8cabb2c
Add intent filter to main activity to provide default email application setting.
Adds intent filter [`CATEGORY_APP_EMAIL`] in order to provide the app's activity as possible default email application. This must be interpreted by Android and [set by the user outside of the application][1].

The new intent-filter for `APP_EMAIL` was added to activity `MessageList`.

[`CATEGORY_APP_EMAIL`]: https://developer.android.com/reference/android/content/Intent.html#CATEGORY_APP_EMAIL
[1]: https://github.com/k9mail/k-9/issues/3231#issuecomment-515759615
2020-01-21 17:14:10 +01:00
cketti
9b2b82eee6 Update Mockito to 3.2.4 and Mockito-Kotlin to 2.2.0 2020-01-19 16:27:53 +01:00
cketti
5870861b6b Rename styles.xml to unread_widget_styles.xml 2020-01-12 23:28:59 +01:00
cketti
95c927b9f7 Remove Theme.K9Dialog 2020-01-12 19:37:41 +01:00
cketti
cbe0f30a24 Prepare for version 5.705 2020-01-09 17:47:07 +01:00
cketti
57ef94ccd5 Version 5.704 2020-01-09 17:37:16 +01:00
cketti
13bc16caf8 Remove Message.getFolder() 2020-01-08 23:30:03 +01:00
Marcus Hoffmann
c1bdd9ee09 add background color to adaptive icons
This adds a desaturated version of K9-Mails envelope color as the
adaptive icon background color.

This should look a lot better than a plain white background.

Also slightly enlarge the icon shape.
2020-01-02 16:19:39 +01:00
cketti
0aac541c27 Prepare for version 5.704 2019-12-22 20:26:49 +01:00
cketti
2791ef9920 Version 5.703 2019-12-22 20:05:06 +01:00
cketti
617624c84e
Merge pull request #4390 from k9mail/keep_message_list_state
Remove launchMode attribute from 'MessageList'
2019-12-19 14:07:06 +01:00
cketti
97a75a54ef Remove launchMode attribute from 'MessageList'
Without this change backgrounding the app and then going back to it will
call onNewIntent(), which in turn will open the default folder.
2019-12-18 18:34:07 +01:00