diff options
author | Christian S <christian@pix-art.de> | 2016-04-04 20:39:06 +0200 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2016-04-04 20:39:06 +0200 |
commit | 3e31db1746e90f460686b0a3fd55ffaa516e2bca (patch) | |
tree | e66e30f0b25e973b5d0b7566e21f85a1b5d19638 /src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java | |
parent | 9a8bd064f05601c0fd31e37c6751ab056d03b666 (diff) |
add option to only allow one account and set it to true
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java index feac2c622..82bce31c0 100644 --- a/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java @@ -114,7 +114,7 @@ public class ManageAccountActivity extends XmppActivity implements OnAccountUpda public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); ManageAccountActivity.this.getMenuInflater().inflate( - R.menu.manageaccounts_context, menu); + R.menu.manageaccounts_context, menu); AdapterContextMenuInfo acmi = (AdapterContextMenuInfo) menuInfo; this.selectedAccount = accountList.get(acmi.position); if (this.selectedAccount.isOptionSet(Account.OPTION_DISABLED)) { @@ -155,9 +155,9 @@ public class ManageAccountActivity extends XmppActivity implements OnAccountUpda addAccount.setVisible(false); addAccountWithCertificate.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); } else { - addAccount.setVisible(!Config.LOCK_SETTINGS); + addAccount.setVisible(!(Config.LOCK_SETTINGS || Config.SINGLE_ACCOUNT)); } - addAccountWithCertificate.setVisible(!Config.LOCK_SETTINGS); + addAccountWithCertificate.setVisible(!(Config.LOCK_SETTINGS || Config.SINGLE_ACCOUNT)); if (!accountsLeftToEnable()) { enableAll.setVisible(false); |