Adds the share toggle and checks if there is a conflict when user attempts to change the toggle. In case of a conflict, an alert dialog in shown to the user. Bug: 409845756 Flag: com.android.settings.connectivity.wifi_multiuser Test: Manual testing Change-Id: Ia57b967ad933ebb19f27f1e50d6a69210b84ac4c
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest