diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-11-20 20:20:48 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-11-20 20:20:48 +0100 |
commit | 243facb0d2acc8b0d22b14a6390990a845db3207 (patch) | |
tree | bcfe55bb1ce557320f2f10dd6645bd6cd6caf428 /src/main/java/de/pixart/messenger/utils | |
parent | 55e8f3b21568863dc66f4f2fe5955de2e62611ae (diff) |
code refactoring to provide shorter account enabled check
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/ExceptionHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/ExceptionHelper.java b/src/main/java/de/pixart/messenger/utils/ExceptionHelper.java index c511039cf..7ed5e4804 100644 --- a/src/main/java/de/pixart/messenger/utils/ExceptionHelper.java +++ b/src/main/java/de/pixart/messenger/utils/ExceptionHelper.java @@ -51,7 +51,7 @@ public class ExceptionHelper { List<Account> accounts = service.getAccounts(); Account account = null; for (int i = 0; i < accounts.size(); ++i) { - if (!accounts.get(i).isOptionSet(Account.OPTION_DISABLED)) { + if (accounts.get(i).isEnabled()) { account = accounts.get(i); break; } |