diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-15 17:31:24 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-15 17:31:24 +0200 |
commit | 32c3dd4f4ada85b48551bcf7e17eafb63857237f (patch) | |
tree | 13fb13cfb9507ee72c9777da8c50ca480c459d09 /src/eu/siacs/conversations/entities/Account.java | |
parent | f7c747ef4b496df77388872c750bf95100991c76 (diff) |
moved add/edit account from dialog into seperate activity
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/entities/Account.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/entities/Account.java b/src/eu/siacs/conversations/entities/Account.java index b734c6ee..5de2c532 100644 --- a/src/eu/siacs/conversations/entities/Account.java +++ b/src/eu/siacs/conversations/entities/Account.java @@ -45,8 +45,6 @@ public class Account extends AbstractEntity{ public static final int STATUS_UNAUTHORIZED = 3; public static final int STATUS_SERVER_NOT_FOUND = 5; - public static final int STATUS_SERVER_REQUIRES_TLS = 6; - public static final int STATUS_REGISTRATION_FAILED = 7; public static final int STATUS_REGISTRATION_CONFLICT = 8; public static final int STATUS_REGISTRATION_SUCCESSFULL = 9; @@ -146,6 +144,11 @@ public class Account extends AbstractEntity{ } } + public boolean errorStatus() { + int s = getStatus(); + return (s == STATUS_OFFLINE || s == STATUS_SERVER_NOT_FOUND || s == STATUS_UNAUTHORIZED); + } + public boolean hasErrorStatus() { return getStatus() > STATUS_NO_INTERNET && (getXmppConnection().getAttempt() >= 2); } |