diff --git a/AndroidManifest.xml b/AndroidManifest.xml index b1fc4fdf1..ed0ef5368 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -22,6 +22,11 @@ + + + + + 0 - && (account.getAutomaticCheckIntervalMinutes() < shortestInterval || shortestInterval == -1)) { - shortestInterval = account.getAutomaticCheckIntervalMinutes(); + int interval = account.getAutomaticCheckIntervalMinutes(); + if (interval > 0 && (interval < shortestInterval || shortestInterval == -1)) { + shortestInterval = interval; } + enablePushMail(account, interval == Account.CHECK_INTERVAL_PUSH); } if (shortestInterval == -1) {