aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-11-08 22:11:35 +0100
committerChristian Schneppe <christian@pix-art.de>2018-11-08 22:11:35 +0100
commit9caca380b41ddb557207663e65d9d7040708d1a5 (patch)
tree0dec6a06b14f86596962ea7250a5213831f46f05
parent4b0ca9038bab18aeec525de42a295345c0acfc0a (diff)
don't show "Show QR Code" if no account is configured
-rw-r--r--src/main/java/de/pixart/messenger/ui/EditAccountActivity.java2
1 files changed, 2 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 91efbc503..3d9c0e63e 100644
--- a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
@@ -604,6 +604,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
final MenuItem changePresence = menu.findItem(R.id.action_change_presence);
final MenuItem actionShare = menu.findItem(R.id.action_share);
final MenuItem shareBarcode = menu.findItem(R.id.action_share_barcode);
+ final MenuItem shareQRCode = menu.findItem(R.id.action_show_qr_code);
final MenuItem announcePGP = menu.findItem(R.id.mgmt_account_announce_pgp);
renewCertificate.setVisible(mAccount != null && mAccount.getPrivateKeyAlias() != null);
@@ -628,6 +629,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
changePresence.setVisible(false);
actionShare.setVisible(false);
shareBarcode.setVisible(false);
+ shareQRCode.setVisible(false);
}
if (mAccount != null) {