Fix Wifi & Bluetooth slice can't show on search result
root cause: we remove wifi & bluetooth preference screen key from search indexing, this cause these 2 special slices can't map to correct key solution: rename preference key for mapping Bug: 149366072 Test: robotest & manual Change-Id: Id424e63c4f97ccd6f58a80aaa414807774159512
This commit is contained in:
@@ -150,13 +150,5 @@ public class NetworkDashboardFragment extends DashboardFragment implements
|
||||
null /* metricsFeatureProvider */, null /* fragment */,
|
||||
null /* mobilePlanHost */);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = super.getNonIndexableKeys(context);
|
||||
// Remove master switch as a result
|
||||
keys.add(WifiMasterSwitchPreferenceController.KEY_TOGGLE_WIFI);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user