Changes to add Ethernet settings row item

Adds EthernetSettings row item to NetworkProviderSettings and its
controller.

Flag: com.android.settings.connectivity.ethernet_settings

Test: atest
SettingsRoboTests:
com.android.settings.network.EthernetSwitchPreferenceControllerTest

Change-Id: I27965ad0c8563657b17e0aa6d3bd19b97fcf5615
This commit is contained in:
Nikhil Nayunigari
2025-01-20 02:56:29 +00:00
parent 63242bc3ff
commit bfd3722e06
8 changed files with 257 additions and 23 deletions

View File

@@ -36,6 +36,12 @@
android:layout="@layout/airplane_mode_message_preference"
settings:allowDividerBelow="true"/>
<com.android.settingslib.RestrictedSwitchPreference
android:key="main_toggle_ethernet"
android:title="@string/ethernet"
settings:restrictedSwitchSummary="@string/not_allowed_by_ent"
settings:allowDividerAbove="true"/>
<Preference
android:key="connected_ethernet_network"
android:title="@string/ethernet"