diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-04-13 22:50:30 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-04-13 22:50:30 +0200 |
commit | f1b500958c990241ad76c3e9476e1229b1141fa0 (patch) | |
tree | 7a9e02b5a07ef953567be00dd53ba73a32907c89 /src/main/java | |
parent | abb8c7eff998c16f50cbe9bf37eb255be8f3058b (diff) |
don't show reconnect button, when offline or no account availbale
fixes #127
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/EditAccountActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java index 957b0e0c9..5bd2ae001 100644 --- a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java +++ b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java @@ -566,6 +566,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat getMenuInflater().inflate(R.menu.editaccount, menu); final MenuItem showQrCode = menu.findItem(R.id.action_show_qr_code); final MenuItem showBlocklist = menu.findItem(R.id.action_show_block_list); + final MenuItem reconnect = menu.findItem(R.id.mgmt_account_reconnect); final MenuItem showMoreInfo = menu.findItem(R.id.action_server_info_show_more); final MenuItem changePassword = menu.findItem(R.id.action_change_password_on_server); final MenuItem showPassword = menu.findItem(R.id.action_show_password); @@ -585,9 +586,11 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat if (!mAccount.getXmppConnection().getFeatures().register()) { changePassword.setVisible(false); } + reconnect.setVisible(true); mamPrefs.setVisible(mAccount.getXmppConnection().getFeatures().mam()); changePresence.setVisible(manuallyChangePresence()); } else { + reconnect.setVisible(false); showQrCode.setVisible(false); showBlocklist.setVisible(false); showMoreInfo.setVisible(false); |