Commit graph

1871 commits

Author SHA1 Message Date
cketti
8038ef4514 Version 5.741 2021-07-22 21:10:23 +02:00
cketti
eb301df95c Update translations 2021-07-22 20:47:09 +02:00
Matt Smith
baed7c09b8 Show full error message in notification 2021-07-17 15:36:18 +12:00
cketti
591af9cdd5 Version 5.740 2021-07-16 17:57:50 +02:00
cketti
016eb671b5 Update translations 2021-07-16 14:43:21 +02:00
cketti
70686c0a94 Fix errors in the 'push_info_disable_push_text' string 2021-07-15 17:14:38 +02:00
cketti
26c64806f2 Add "Push Info" screen 2021-07-15 00:20:48 +02:00
Art O Cathain
34320b4295 Do not show push mode for local folders 2021-07-14 23:24:57 +10:00
cketti
ec854e242e
Merge pull request #5407 from k9mail/fix_npe_in_drawer
Fix possible NullPointerException in K9Drawer
2021-07-14 14:45:03 +02:00
cketti
dfa939c57e
Merge pull request #5406 from k9mail/fix_push_crashes
Fix push crashes
2021-07-14 14:44:40 +02:00
cketti
659937aac5
Merge pull request #5405 from k9mail/update_list_of_libraries
Update list of libraries in About screen
2021-07-14 14:43:21 +02:00
cketti
bd342be05a Fix possible NullPointerException in K9Drawer 2021-07-13 16:10:27 +02:00
cketti
00be66b1c1 Don't throw in AccountPushController.updatePushFolders()
When the 'backendPusher' property is null the AccountPushController (and BackendPusher) have already been stopped.
2021-07-13 15:45:21 +02:00
cketti
51f486717b Update list of libraries in About screen 2021-07-13 14:57:35 +02:00
cketti
f8a13b41f9
Merge pull request #5401 from artbristol/art/rename_poll_to_sync
Update wording to be clearer
2021-07-13 13:32:44 +02:00
Art O Cathain
9d4c4e9082 Update wording to be consistent 2021-07-13 10:02:54 +10:00
cketti
890b1a02d1 Change text for Push notification 2021-07-11 17:34:08 +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
475a1474bd
Merge pull request #5400 from k9mail/fix_push_when_connectivity_returns
Restart AccountPushControllers when connectivity returns
2021-07-10 15:30:03 +02:00
cketti
38c0b2dfb2 Restart AccountPushControllers when connectivity returns
PushController.onConnectivityChanged() is not only called when the active network changes, but also when connectivity returns (offline -> online). In that case we need to restart the AccountPushControllers.
2021-07-10 14:28:57 +02:00
cketti
fae1bf30ba Upgrade ckchangelog-core to 2.0.0-beta02 2021-07-10 03:39:10 +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
108868155e Persist general settings on a background thread 2021-07-08 22:56:45 +02:00
cketti
7f61b0d489
Merge pull request #5391 from k9mail/fix_AndroidAlarmManager
Fix AndroidAlarmManager dropping alarms
2021-07-08 22:30:38 +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
plan3d
68fd9cf819 Issue #2490: Inline attachments are included in forwarded messages 2021-07-06 21:00:18 +02:00
cketti
7580c04d6c Don't allow an IDLE refresh interval of 1 minute 2021-07-05 17:38:49 +02:00
cketti
95ecac8893 Close all Push connections when Android connects to another network
When the default network changes Android usually kills connections established over the old network after a little while. K-9 Mail treats this as a regular network error and sleeps for 5 minutes before trying to re-establish the Push connection(s). Closing old connections and opening new ones when a network change is detected avoids this error.
2021-07-04 21:27:38 +02:00
cketti
830b358ff3 Change 'ConnectivityChangeListener' interface
Distinguish between 'connectivity changed' and 'connectivity lost' events.
2021-07-04 21:17:06 +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
1a12ab3177 Add new setting: showRecentChanges 2021-07-03 14:13:29 +02:00
cketti
ed25609df0
Merge pull request #5377 from k9mail/GeneralSettingsManager
Introduce GeneralSettingsManager
2021-07-01 19:06:34 +02:00
cketti
991f814980 Introduce GeneralSettingsManager
A first step towards moving away from the global mutable state in `K9`.
2021-07-01 17:47:10 +02:00
cketti
206c7378a8 Don't reuse AccountsLiveData instance
When the last account is deleted while AccountsLiveData is active it will hold on to an empty list. Then, when an account is added again and AccountsLiveData becomes active again, the empty list is emitted before the list containing the new account is emitted. This lead to the onboarding screen being shown when it shouldn't have. Not holding on to old AccountsLiveData instances will get rid of this problem.
2021-06-30 22:49:57 +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
198975dda3 Use ConnectivityManager.registerDefaultNetworkCallback() on API 24+ 2021-06-26 23:15:15 +02:00
cketti
ec6e976198
Merge pull request #5370 from k9mail/inbox_push_class
Set push class of Inbox to 'first class' by default
2021-06-26 22:37:50 +02:00
cketti
f9f5f8eb1c Set push class of Inbox to 'first class' by default 2021-06-26 22:17:24 +02:00
cketti
fe4282a03c
Merge pull request #5368 from k9mail/connectivity_manager_network_change
Make ConnectivityManager notify when the active network changes
2021-06-26 22:02:16 +02:00
cketti
1bd3173f71 Don't start PushService if there are no Push-enabled accounts 2021-06-26 21:22:19 +02:00
cketti
0ca3c5575f Make ConnectivityManager notify when the active network changes
Also fix how isNetworkAvailable() works. We now always query the active network (if there is one).
2021-06-26 21:11:33 +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
e6f152a00c Remove migration that enabled polling when we temporarily disabled push 2021-06-24 15:22:10 +02:00
cketti
ac131758b1 Make sure PushController only deals with Push accounts
We could end up with a non-Push-capable account that has `folderPushMode` set to something other than `NONE` due to missing checks in the settings import code. See issue #5363.
2021-06-24 15:22:10 +02:00
cketti
81aab8945f Hide Push-related settings when account doesn't support Push 2021-06-24 15:22:10 +02:00
cketti
54a2cf8e28 Rewrite 'folderPushMode' value of non-IMAP accounts to 'NONE' 2021-06-24 15:22:10 +02:00
cketti
211ffb98df Set default value of 'Push folders' to 'None' 2021-06-24 14:22:00 +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
44d6023e23
Merge pull request #5361 from k9mail/idle_config
Re-enable "advanced" IMAP IDLE settings screen
2021-06-24 12:59:43 +02:00
cketti
3c354940e3 Update translations 2021-06-23 18:05:16 +02:00
cketti
5c25d454b1 Re-enable 'Advanced' settings screen for IDLE settings 2021-06-23 15:34:31 +02:00
cketti
ebbe02c057 Add ImapPushConfigProvider 2021-06-23 15:34:31 +02:00
cketti
145eba5e2e
Merge pull request #5360 from k9mail/account_flow
Add AccountManager.getAccountFlow()
2021-06-23 12:59:59 +02:00
cketti
15bac4c18a Add AccountManager.getAccountFlow()
Instead of adding a custom callbackFlow() for each account property we're interested in, we can now use `AccountManager.getAccountFlow(accountUuid).map { it.relevantProperty }`.
2021-06-23 10:05:52 +02:00
cketti
a7f4093147 Remove unused K9JobManager.schedulePusherRefresh() 2021-06-22 16:04:20 +02:00
cketti
594cb75ca5
Merge pull request #5356 from k9mail/push_controller
Add implementation for PushController
2021-06-22 15:57:12 +02:00
cketti
72a07b1169 Add back 'push folders' and 'folder push class' settings 2021-06-22 15:30:23 +02:00
cketti
8fea80f14c Add PushController implementation 2021-06-22 15:30:23 +02:00
cketti
e157203056
Merge pull request #5358 from Monkey-Matt/account-setup-textinputlayout
Use TextInputLayout to match other setup screens
2021-06-22 15:00:41 +02:00
cketti
027b3e5a41
Merge pull request #5357 from k9mail/global_search
Add 'search everywhere' menu item
2021-06-22 13:49:16 +02:00
cketti
f8b88ef9d0
Merge pull request #5355 from k9mail/request_code_fix
Fix request code handling
2021-06-22 12:56:58 +02:00
Matt Smith
a3f65ff5c8 Use textinputlayout to match other setup screens 2021-06-22 21:48:29 +12:00
cketti
f40e74886b Add 'search everywhere' menu item
When starting a search in a regular folder only messages in that folder are searched. 'Search everywhere' will re-run that search in all accounts and all folders.
2021-06-22 01:20:22 +02:00
cketti
4caeb6caa3 Start PushController from K9Activity 2021-06-21 14:24:54 +02:00
cketti
0b1a3a01fb
Merge pull request #5354 from k9mail/backend_changed_listener
Add listener mechanism to BackendManager
2021-06-21 14:16:29 +02:00
cketti
89d3cdbad5 Add listener mechanism to BackendManager 2021-06-21 14:03:45 +02:00
cketti
13caecad2d
Merge pull request #5353 from k9mail/connectivity_manager
Add ConnectivityManager to listen for changes in network availability
2021-06-21 13:58:53 +02:00
Art O Cathain
05c5319b45 Fix error when forwarding encrypted attachments
SafeContentResolver refuses to load encrypted attachments with an error:
"Content provider is not explicitly allowed:
com.fsck.k9.debug.decryptedfileprovider"

For internally provided attachments, there is no need to use
SafeContentResolver, so we use the default system ContentResolver
2021-06-21 21:08:24 +10:00
cketti
20c3a4179f Fix request code handling
For its result dispatching mechanism ComponentActivity uses random request codes that may have one of "our" bits set. Those random request codes will always be greater than 0x00010000. We use this information to ignore all request codes that aren't ours.
2021-06-21 12:16:17 +02:00
cketti
37c9ffbe90 Add ConnectivityManager to listen for changes in network availability 2021-06-19 16:11:51 +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
bf21572b57 Add AlarmManagerCompat 2021-06-18 19:47:00 +02:00
cketti
78ad10e3df Remove unused K9AlarmManager 2021-06-18 19:46:48 +02:00
cketti
7a940240c3 Add BootCompleteReceiver to start PushController on device boot 2021-06-18 19:34:28 +02:00
cketti
5520fdac96
Merge pull request #5347 from k9mail/idle_refresh_manager
Add implementation for BackendIdleRefreshManager
2021-06-18 16:27:59 +02:00
cketti
be17063212
Merge pull request #5348 from k9mail/account_push_controller
Add AccountPushController
2021-06-17 22:15:20 +02:00
cketti
bf1d528972 Add AccountPushController 2021-06-17 21:49:23 +02:00
cketti
a2a6b93253
Merge pull request #5349 from k9mail/fix_attachment_box
Fix attachment box layout in compose screen
2021-06-17 21:38:47 +02:00
cketti
129ec0de98
Merge pull request #5350 from k9mail/fix_expunge_immediately
Honor expunge policy when deleting messages
2021-06-17 21:38:25 +02:00
cketti
cf4a6233fd
Merge pull request #5344 from arissystem-labs/bugfix-5343
fix some issues with "Add from Contact" when permission not granted
2021-06-17 21:33:39 +02:00
cketti
e4af588431 Honor expunge policy when deleting messages
Previously, we didn't expunge messages when the expunge policy was set to 'immediately' (default) and no Trash folder was configured.
2021-06-16 19:47:01 +02:00
cketti
6562ee4ac8 Fix attachment box layout in compose screen 2021-06-16 19:15:53 +02:00
cketti
a74c206a0c Add implementation for BackendIdleRefreshManager 2021-06-16 15:04:01 +02:00
r.zarchi
66d37a0db2 Ignore fillContactDataFromLookupKey if we don't have the necessary permission 2021-06-16 10:00:53 +04:30
r.zarchi
fb9ed80df6 check for contact permission and contact picker to show or hide "Add from Contacts" option 2021-06-16 09:46:08 +04:30
cketti
c8808ae447 Add ImapBackendPusher that manages multiple ImapFolderPusher instances 2021-06-13 00:51:23 +02:00
cketti
ac0f01c206
Merge pull request #5338 from k9mail/push_service
Add foreground service for Push
2021-06-13 00:09:02 +02:00
cketti
f45b8a2317 Add AutoSyncManager to listen for changes to the "auto sync" system setting 2021-06-12 23:53:15 +02:00
cketti
46a2c351d5 Add foreground service for Push 2021-06-12 17:04:45 +02:00
cketti
fb55ee76f9
Merge pull request #5337 from k9mail/notification_ids_test
Rewrite tests for NotificationIds
2021-06-12 16:00:28 +02:00
cketti
f3b7cd7d14 Add notification channel for a Push foreground service 2021-06-11 18:33:09 +02:00
cketti
5df81c2908 Rewrite tests for NotificationIds
Check the properties we actually care about instead of testing implementation details.
2021-06-11 13:52:01 +02:00
cketti
296ba92221
Merge pull request #5333 from k9mail/imap_interfaces 2021-06-10 21:28:01 +02:00
cketti
e877c3b313
Merge pull request #5329 from k9mail/fix_locale_override
Re-apply the locale override to the configuration if necessary
2021-06-10 21:27:35 +02:00