aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-12-01 13:07:18 +0100
committerDaniel Gultsch <daniel@gultsch.de>2016-12-01 13:07:18 +0100
commit6e95ad4bdf4b8657c0ed40acbab802c791f52c32 (patch)
tree269712136e54a02c2e64111248e972b68be66e59
parent168ad50ddd6360f3280045a7cd92230acc5706d3 (diff)
don't show share button before account is setup
-rw-r--r--src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java3
1 files changed, 3 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 e14f559e..f48e8a48 100644
--- a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java
@@ -565,8 +565,11 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
final MenuItem renewCertificate = menu.findItem(R.id.action_renew_certificate);
final MenuItem mamPrefs = menu.findItem(R.id.action_mam_prefs);
final MenuItem changePresence = menu.findItem(R.id.action_change_presence);
+ final MenuItem share = menu.findItem(R.id.action_share);
renewCertificate.setVisible(mAccount != null && mAccount.getPrivateKeyAlias() != null);
+ share.setVisible(mAccount != null && !mInitMode);
+
if (mAccount != null && mAccount.isOnlineAndConnected()) {
if (!mAccount.getXmppConnection().getFeatures().blocking()) {
showBlocklist.setVisible(false);