From 38c0b2dfb23eb6c0eefde7ef33b318ebe6114bae Mon Sep 17 00:00:00 2001 From: cketti Date: Sat, 10 Jul 2021 14:28:57 +0200 Subject: [PATCH] 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. --- .../src/main/java/com/fsck/k9/controller/push/PushController.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/core/src/main/java/com/fsck/k9/controller/push/PushController.kt b/app/core/src/main/java/com/fsck/k9/controller/push/PushController.kt index 8c643d599..0b7fb7a7d 100644 --- a/app/core/src/main/java/com/fsck/k9/controller/push/PushController.kt +++ b/app/core/src/main/java/com/fsck/k9/controller/push/PushController.kt @@ -105,6 +105,8 @@ class PushController internal constructor( accountPushController.reconnect() } } + + updatePushers() } }