From 870e6d9afb877e166b63203c523aad18b5f660b5 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 6 Jul 2021 20:07:16 +0200 Subject: [PATCH] Refactoring --- app/src/main/java/eu/faircode/email/EmailProvider.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EmailProvider.java b/app/src/main/java/eu/faircode/email/EmailProvider.java index 7260d737f8..30a93c37c0 100644 --- a/app/src/main/java/eu/faircode/email/EmailProvider.java +++ b/app/src/main/java/eu/faircode/email/EmailProvider.java @@ -620,7 +620,7 @@ public class EmailProvider implements Parcelable { Server untrusted = null; for (Server server : imaps) { - Boolean result = server.reachable.get(); + Boolean result = server.isReachable.get(); if (result == null) { if (untrusted == null) untrusted = server; @@ -653,7 +653,7 @@ public class EmailProvider implements Parcelable { Server untrusted = null; for (Server server : smtps) { - Boolean result = server.reachable.get(); + Boolean result = server.isReachable.get(); if (result == null) { if (untrusted == null) untrusted = server; @@ -778,7 +778,7 @@ public class EmailProvider implements Parcelable { public int port; public boolean starttls; - private Future reachable; + private Future isReachable; private Server() { } @@ -788,7 +788,7 @@ public class EmailProvider implements Parcelable { this.port = port; Log.i("Scanning " + host + ":" + port); - this.reachable = executor.submit(new Callable() { + this.isReachable = executor.submit(new Callable() { // Returns: // false: closed // true: listening