mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-20 13:08:07 +00:00
add dns option in network settings
This commit is contained in:
parent
a815588e13
commit
1efd03e367
2 changed files with 17 additions and 0 deletions
|
|
@ -92,6 +92,21 @@
|
|||
linphone:enabled="@{!viewModel.randomPorts}"
|
||||
android:visibility="@{viewModel.randomPorts ? View.GONE : View.VISIBLE}"/>
|
||||
|
||||
<include
|
||||
layout="@layout/settings_widget_switch"
|
||||
linphone:title="@{@string/network_settings_use_dns_server_title}"
|
||||
linphone:listener="@{viewModel.useDnsServerListener}"
|
||||
linphone:checked="@={viewModel.useDnsServer}" />
|
||||
|
||||
<include
|
||||
layout="@layout/settings_widget_text"
|
||||
linphone:title="@{@string/network_settings_dns_server_address_title}"
|
||||
linphone:listener="@{viewModel.dnsServerAddressListener}"
|
||||
linphone:defaultValue="@{viewModel.dnsServerAddress.toString()}"
|
||||
linphone:inputType="@{InputType.TYPE_CLASS_TEXT}"
|
||||
linphone:enabled="@{viewModel.useDnsServer}"
|
||||
android:visibility="@{viewModel.useDnsServer ? View.VISIBLE : View.GONE}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
|
|
|||
|
|
@ -586,6 +586,8 @@
|
|||
<string name="network_settings_allow_ipv6_title">Allow IPv6</string>
|
||||
<string name="network_settings_random_ports_title">Use random ports</string>
|
||||
<string name="network_settings_sip_port_title">SIP port to use</string>
|
||||
<string name="network_settings_use_dns_server_title">Use custom DNS server</string>
|
||||
<string name="network_settings_dns_server_address_title">DNS server address</string>
|
||||
|
||||
<!-- Contacts settings -->
|
||||
<string name="contacts_settings_friendlist_subscribe_title">Friendlist subscribe</string>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue