aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-08-29 10:24:25 +0200
committeriNPUTmice <daniel@gultsch.de>2014-08-29 10:24:25 +0200
commit33172246c9a038cefb68d12477513afcb64f89d2 (patch)
tree553c70d370fe017c29a8bcd0798a16f02346fb23 /src/eu/siacs/conversations
parent37e87e7252b7318fb904121734275818955a8a8c (diff)
fixed #389
Diffstat (limited to 'src/eu/siacs/conversations')
-rw-r--r--src/eu/siacs/conversations/ui/EditAccountActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/ui/EditAccountActivity.java b/src/eu/siacs/conversations/ui/EditAccountActivity.java
index 2d24aa49..d98a0ca7 100644
--- a/src/eu/siacs/conversations/ui/EditAccountActivity.java
+++ b/src/eu/siacs/conversations/ui/EditAccountActivity.java
@@ -201,7 +201,11 @@ public class EditAccountActivity extends XmppActivity {
this.mSaveButton.setEnabled(true);
this.mSaveButton.setTextColor(getPrimaryTextColor());
if (jidToEdit != null) {
- this.mSaveButton.setText(R.string.connect);
+ if (mAccount!= null && mAccount.getStatus() == Account.STATUS_ONLINE) {
+ this.mSaveButton.setText(R.string.save);
+ } else {
+ this.mSaveButton.setText(R.string.connect);
+ }
} else {
this.mSaveButton.setText(R.string.next);
}