From 78686e9bce44d6279cb1475945309325888f0fc3 Mon Sep 17 00:00:00 2001 From: Alethea Butler Date: Fri, 30 May 2014 23:18:50 -0400 Subject: Disabled the Home button when it's not the Up button --- src/eu/siacs/conversations/ui/ManageAccountActivity.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/eu/siacs/conversations/ui/ManageAccountActivity.java') 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"); -- cgit v1.2.3