diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 4dce0d43f..de398467d 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -49,6 +49,7 @@
accountList = new ArrayList();
protected ListView accountListView;
protected ArrayAdapter accountListViewAdapter;
@@ -201,7 +202,7 @@ public class ManageAccountActivity extends XmppActivity {
activity.xmppConnectionService.reconnectAccount(accountList.get(position),true);
} else if (account.getStatus() == Account.STATUS_ONLINE) {
activity.startActivity(new Intent(activity.getApplicationContext(),ContactsActivity.class));
- } else if (account.isOptionSet(Account.OPTION_REGISTER)) {
+ } else if (account.getStatus() != Account.STATUS_DISABLED) {
editAccount(account);
}
} else {
@@ -382,9 +383,10 @@ public class ManageAccountActivity extends XmppActivity {
this.accountList.clear();
this.accountList.addAll(xmppConnectionService.getAccounts());
accountListViewAdapter.notifyDataSetChanged();
- if (this.accountList.size() == 0) {
+ if ((this.accountList.size() == 0)&&(this.firstrun)) {
getActionBar().setDisplayHomeAsUpEnabled(false);
addAccount();
+ this.firstrun = false;
}
}