OSDN Git Service

Add control to save button.
authorjackqdyulei <jackqdyulei@google.com>
Thu, 9 Nov 2017 18:37:46 +0000 (10:37 -0800)
committerjackqdyulei <jackqdyulei@google.com>
Wed, 15 Nov 2017 20:54:18 +0000 (12:54 -0800)
commit84b3b97ca0d20c4f6bc9ca5e38f7d6e0160a16da
treef2227277641b6c381bab660bd4dd333696b8cf25
parente50254dce0469e60ec2942fdcb5641f3bb02f134
Add control to save button.

If the mode is PRIVATE_DNS_MODE_PROVIDER_HOSTNAME and hostname is
invalid, we should disable the save button. Otherwise enable the
save button.

Bug: 68030013
Test: RunSettingsRoboTests
Change-Id: If9149c119f1b396a7057590d515b62e7c19b9f99
src/com/android/settings/network/PrivateDnsModeDialogFragment.java
tests/robotests/src/com/android/settings/network/PrivateDnsModeDialogFragmentTest.java