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:
@@ -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"/>
|
||||||
|
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user