From 9bfe922f6686857e7be5b6c6524aa6bcec8b2b2a Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 14 May 2016 11:14:48 +0200 Subject: add reconnect to EditAccountActivity --- src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/java/eu/siacs') 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()); -- cgit v1.2.3