diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-02-24 17:12:29 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-02-24 17:12:29 +0100 |
commit | 5d3ee60ca4b98ea2defbe70e4c19a81e22a4f97e (patch) | |
tree | 045b3d257a2541762c16077ba13d2c862fcce516 /src/main/java/eu/siacs/conversations/ui | |
parent | bbede8bbeb8728aac35856cc41eabea899056d74 (diff) |
hide add account icons when single_account is set to true
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java index 515f6fbd..1fc1924d 100644 --- a/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java @@ -154,7 +154,10 @@ public class ManageAccountActivity extends XmppActivity implements OnAccountUpda if (Config.X509_VERIFICATION) { addAccount.setVisible(false); addAccountWithCertificate.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); + } else { + addAccount.setVisible(!Config.SINGLE_ACCOUNT); } + addAccountWithCertificate.setVisible(!Config.SINGLE_ACCOUNT); if (!accountsLeftToEnable()) { enableAll.setVisible(false); |