Rename Wi-Fi switch controller's key

Leverage the key of WifiPrimarySwitchPreferenceController for Settings
Search mapping it to the slice

Bug: 186181785
Test: manual, robotest
Change-Id: I1372afff93f01505c377e94b648e6f8dcbbafe54
This commit is contained in:
Jason Chiu
2021-06-07 15:08:59 +08:00
parent 7bebe57631
commit fe01ecc052
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@
android:layout="@layout/preference_category_no_label"/> android:layout="@layout/preference_category_no_label"/>
<com.android.settingslib.RestrictedSwitchPreference <com.android.settingslib.RestrictedSwitchPreference
android:key="wifi_switch" android:key="main_toggle_wifi"
android:title="@string/wifi" android:title="@string/wifi"
android:summary="@string/wifi_switch_summary" android:summary="@string/wifi_switch_summary"
settings:keywords="@string/keywords_wifi"/> settings:keywords="@string/keywords_wifi"/>

View File

@@ -35,7 +35,7 @@ import com.android.settingslib.core.AbstractPreferenceController;
public class WifiSwitchPreferenceController extends AbstractPreferenceController implements public class WifiSwitchPreferenceController extends AbstractPreferenceController implements
LifecycleObserver { LifecycleObserver {
public static final String KEY = "wifi_switch"; public static final String KEY = "main_toggle_wifi";
private RestrictedSwitchPreference mPreference; private RestrictedSwitchPreference mPreference;