Commit graph

10290 commits

Author SHA1 Message Date
cketti
069b357f95 Version 5.738 2021-07-08 23:19:03 +02:00
cketti
5d2dcafada
Merge pull request #5393 from k9mail/fix_saving_settings
Persist general settings on a background thread
2021-07-08 23:13:33 +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
cketti
09ce55e70d
Merge pull request #5330 from plan3d/issue_2490
Include inline attachments in forwarded message
2021-07-08 13:58:27 +02:00
plan3d
68fd9cf819 Issue #2490: Inline attachments are included in forwarded messages 2021-07-06 21:00:18 +02:00
cketti
1809f4a1ef
Merge pull request #5383 from k9mail/idle_refresh_interval
Don't allow an IDLE refresh interval of 1 minute
2021-07-06 18:25:11 +02:00
cketti
7580c04d6c Don't allow an IDLE refresh interval of 1 minute 2021-07-05 17:38:49 +02:00
cketti
5a10d08f8c
Merge pull request #5382 from k9mail/close_connections_on_network_change
[Push] Re-establish connections on network change
2021-07-05 13:48:04 +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
d408a5670e
Merge pull request #5380 from k9mail/close_imap_connections
Add a way to close all open IMAP connections
2021-07-04 19:36:28 +02:00
cketti
152424b20c Add a way to close all open IMAP connections
Use a "connection generation" value to mark all connections that have been created since the last closeAllConnections() call. Using that value we can recognize "old" connections that have not been in the connection pool at the time closeAllConnections() was called. We close them as soon as they are passed to releaseConnection().
2021-07-03 20:04:05 +02:00
cketti
f5c9c32a15
Merge pull request #5379 from k9mail/whats_new
Show "What's new" screen when app was updated
2021-07-03 15:06:50 +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
86c70772cc
Merge pull request #5376 from k9mail/GH-5197_onboarding_again
Don't reuse AccountsLiveData instance
2021-06-30 23:36:32 +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
0108098d0f
Merge pull request #5371 from k9mail/more_ConnectivityManager_fixes
Use ConnectivityManager.registerDefaultNetworkCallback() on API 24+
2021-06-26 23:46:24 +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
84fc7c3872
Merge pull request #5369 from k9mail/fix_no_push_accounts
Don't start PushService if there are no Push-enabled accounts
2021-06-26 21:41:19 +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
c0393d92c1
Merge pull request #5364 from k9mail/push_fixes
Push fixes
2021-06-24 15:43:28 +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
65e2943cf6
Merge pull request #5362 from k9mail/update_translations
Update translations
2021-06-24 12:27:49 +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
aa9f6eaefa Add IdleRefreshTimeoutProvider 2021-06-23 14:02:07 +02:00
cketti
145eba5e2e
Merge pull request #5360 from k9mail/account_flow
Add AccountManager.getAccountFlow()
2021-06-23 12:59:59 +02:00
cketti
7ea4365cda
Merge pull request #5359 from k9mail/remove_schedulePusherRefresh
Remove unused K9JobManager.schedulePusherRefresh()
2021-06-23 12:56:37 +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