OSDN Git Service

Add private dns dialog in wifi settings
authorjackqdyulei <jackqdyulei@google.com>
Wed, 8 Nov 2017 21:29:23 +0000 (13:29 -0800)
committerjackqdyulei <jackqdyulei@google.com>
Mon, 13 Nov 2017 22:53:14 +0000 (14:53 -0800)
commit05cb931a3110c832fb5372ca30f93e8e8321d233
treea9efe09252de26729737387a3103a369290f6e39
parentd0965a21e42411b26d917af2f9a92f7e04783707
Add private dns dialog in wifi settings

This option lives in menu. A dialog will show up once this menu
is clicked.

We reuse most of the logic in go/aog/524415 with the following
updates:
1. Use radioGroup instead of directly control radioButton
2. remove bunch of methods if they are only used once.

Following cl will:
1. Remove this feature in development page
2. Add the help link at the bottom of the dialog
3. Disable "Save" button when hostname is invalid.

Bug: 68030013
Test: add for later

Change-Id: I4c6d359dc9c55675858c20e47953ef677b31c3b5
res/layout/private_dns_mode_dialog.xml
src/com/android/settings/network/NetworkDashboardFragment.java
src/com/android/settings/network/NetworkResetActionMenuController.java
src/com/android/settings/network/PrivateDnsMenuController.java [new file with mode: 0644]
src/com/android/settings/network/PrivateDnsModeDialogFragment.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/network/NetworkResetActionMenuControllerTest.java
tests/robotests/src/com/android/settings/network/PrivateDnsMenuControllerTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/network/PrivateDnsModeDialogFragmentTest.java [new file with mode: 0644]