diff options
author | Alethea Butler <alethea@alethea.io> | 2014-05-30 23:18:50 -0400 |
---|---|---|
committer | Alethea Butler <alethea@alethea.io> | 2014-05-30 23:18:50 -0400 |
commit | 78686e9bce44d6279cb1475945309325888f0fc3 (patch) | |
tree | 48edd23735cb0057432f86f34e078bd82e8421d4 /src/eu/siacs/conversations/ui/ManageAccountActivity.java | |
parent | b763d7ad5642be5b83ba13d6161fcb0102f50ff6 (diff) |
Disabled the Home button when it's not the Up button
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/ui/ManageAccountActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/ManageAccountActivity.java b/src/eu/siacs/conversations/ui/ManageAccountActivity.java index d1c9c7f7..eae1196b 100644 --- a/src/eu/siacs/conversations/ui/ManageAccountActivity.java +++ b/src/eu/siacs/conversations/ui/ManageAccountActivity.java @@ -380,6 +380,7 @@ public class ManageAccountActivity extends XmppActivity { accountListViewAdapter.notifyDataSetChanged(); if ((this.accountList.size() == 0)&&(this.firstrun)) { getActionBar().setDisplayHomeAsUpEnabled(false); + getActionBar().setHomeButtonEnabled(false); addAccount(); this.firstrun = false; } @@ -429,6 +430,7 @@ public class ManageAccountActivity extends XmppActivity { public void onAccountEdited(Account account) { xmppConnectionService.createAccount(account); activity.getActionBar().setDisplayHomeAsUpEnabled(true); + activity.getActionBar().setHomeButtonEnabled(true); } }); dialog.show(getFragmentManager(), "add_account"); |