don’t show edit nick on Conversations
This commit is contained in:
parent
e335c59600
commit
ccf9c42d0d
|
@ -61,6 +61,7 @@ import eu.siacs.conversations.ui.util.MenuDoubleTabUtil;
|
||||||
import eu.siacs.conversations.ui.util.PendingItem;
|
import eu.siacs.conversations.ui.util.PendingItem;
|
||||||
import eu.siacs.conversations.ui.util.SoftKeyboardUtils;
|
import eu.siacs.conversations.ui.util.SoftKeyboardUtils;
|
||||||
import eu.siacs.conversations.utils.CryptoHelper;
|
import eu.siacs.conversations.utils.CryptoHelper;
|
||||||
|
import eu.siacs.conversations.utils.Resolver;
|
||||||
import eu.siacs.conversations.utils.SignupUtils;
|
import eu.siacs.conversations.utils.SignupUtils;
|
||||||
import eu.siacs.conversations.utils.UIHelper;
|
import eu.siacs.conversations.utils.UIHelper;
|
||||||
import eu.siacs.conversations.utils.XmppUri;
|
import eu.siacs.conversations.utils.XmppUri;
|
||||||
|
@ -544,7 +545,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
|
||||||
this.binding.hostname.addTextChangedListener(mTextWatcher);
|
this.binding.hostname.addTextChangedListener(mTextWatcher);
|
||||||
this.binding.hostname.setOnFocusChangeListener(mEditTextFocusListener);
|
this.binding.hostname.setOnFocusChangeListener(mEditTextFocusListener);
|
||||||
this.binding.clearDevices.setOnClickListener(v -> showWipePepDialog());
|
this.binding.clearDevices.setOnClickListener(v -> showWipePepDialog());
|
||||||
this.binding.port.setText("5222");
|
this.binding.port.setText(String.valueOf(Resolver.DEFAULT_PORT_XMPP));
|
||||||
this.binding.port.addTextChangedListener(mTextWatcher);
|
this.binding.port.addTextChangedListener(mTextWatcher);
|
||||||
this.binding.saveButton.setOnClickListener(this.mSaveButtonClickListener);
|
this.binding.saveButton.setOnClickListener(this.mSaveButtonClickListener);
|
||||||
this.binding.cancelButton.setOnClickListener(this.mCancelButtonClickListener);
|
this.binding.cancelButton.setOnClickListener(this.mCancelButtonClickListener);
|
||||||
|
@ -556,6 +557,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
|
||||||
if (Config.DISALLOW_REGISTRATION_IN_UI) {
|
if (Config.DISALLOW_REGISTRATION_IN_UI) {
|
||||||
this.binding.accountRegisterNew.setVisibility(View.GONE);
|
this.binding.accountRegisterNew.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
this.binding.yourNameBox.setVisibility(QuickConversationsService.isQuicksy() ? View.VISIBLE : View.GONE);
|
||||||
this.binding.actionEditYourName.setOnClickListener(this::onEditYourNameClicked);
|
this.binding.actionEditYourName.setOnClickListener(this::onEditYourNameClicked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,8 @@ import eu.siacs.conversations.services.XmppConnectionService;
|
||||||
|
|
||||||
public class Resolver {
|
public class Resolver {
|
||||||
|
|
||||||
|
public static final int DEFAULT_PORT_XMPP = 5222;
|
||||||
|
|
||||||
private static final String DIRECT_TLS_SERVICE = "_xmpps-client";
|
private static final String DIRECT_TLS_SERVICE = "_xmpps-client";
|
||||||
private static final String STARTTLS_SERICE = "_xmpp-client";
|
private static final String STARTTLS_SERICE = "_xmpp-client";
|
||||||
|
|
||||||
|
@ -148,7 +150,7 @@ public class Resolver {
|
||||||
try {
|
try {
|
||||||
Result result = new Result();
|
Result result = new Result();
|
||||||
result.ip = InetAddress.getByName(domain);
|
result.ip = InetAddress.getByName(domain);
|
||||||
result.port = 5222;
|
result.port = DEFAULT_PORT_XMPP;
|
||||||
return Collections.singletonList(result);
|
return Collections.singletonList(result);
|
||||||
} catch (UnknownHostException e) {
|
} catch (UnknownHostException e) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
@ -268,7 +270,7 @@ public class Resolver {
|
||||||
public static final String AUTHENTICATED = "authenticated";
|
public static final String AUTHENTICATED = "authenticated";
|
||||||
private InetAddress ip;
|
private InetAddress ip;
|
||||||
private DNSName hostname;
|
private DNSName hostname;
|
||||||
private int port = 5222;
|
private int port = DEFAULT_PORT_XMPP;
|
||||||
private boolean directTls = false;
|
private boolean directTls = false;
|
||||||
private boolean authenticated = false;
|
private boolean authenticated = false;
|
||||||
private int priority;
|
private int priority;
|
||||||
|
@ -284,7 +286,7 @@ public class Resolver {
|
||||||
|
|
||||||
static Result createDefault(DNSName hostname, InetAddress ip) {
|
static Result createDefault(DNSName hostname, InetAddress ip) {
|
||||||
Result result = new Result();
|
Result result = new Result();
|
||||||
result.port = 5222;
|
result.port = DEFAULT_PORT_XMPP;
|
||||||
result.hostname = hostname;
|
result.hostname = hostname;
|
||||||
result.ip = ip;
|
result.ip = ip;
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -469,11 +469,16 @@
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableLayout>
|
</TableLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="8dp"/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/your_name_box"
|
android:id="@+id/your_name_box"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginTop="32dp">
|
android:visibility="gone"
|
||||||
|
android:layout_marginTop="24dp">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
Loading…
Reference in a new issue