mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-27 19:22:15 -05:00
don't show share button before account is setup
This commit is contained in:
parent
168ad50ddd
commit
6e95ad4bdf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user