diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-05-14 11:14:48 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-05-14 11:14:48 +0200 |
commit | 9bfe922f6686857e7be5b6c6524aa6bcec8b2b2a (patch) | |
tree | 5cfd3a7336ec32b27cb81163a82f647cda55f584 /src/main/java/eu/siacs | |
parent | 031d001eed7fc5aa9926d503e248358803508eba (diff) |
add reconnect to EditAccountActivity
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java index c8d88b308..57d3f9550 100644 --- a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java @@ -618,6 +618,15 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate @Override public boolean onOptionsItemSelected(final MenuItem item) { switch (item.getItemId()) { + case R.id.mgmt_account_reconnect: + if (xmppConnectionServiceBound) { + unbindService(mConnection); + xmppConnectionServiceBound = false; + } + stopService(new Intent(EditAccountActivity.this, + XmppConnectionService.class)); + finish(); + break; case R.id.action_show_block_list: final Intent showBlocklistIntent = new Intent(this, BlocklistActivity.class); showBlocklistIntent.putExtra(EXTRA_ACCOUNT, mAccount.getJid().toString()); |