Remove search duplicates for Wifi and Bluetooth
Remove the master switch duplicates between the switch and their targets. Only show the actual Wifi and Bluetooth settings as search results. Bug: 33701673 Test: make RunSettingsRoboTests Change-Id: I226cc8db40a308bd9bcfacdd4fc6ae709fb809c5
This commit is contained in:
@@ -96,9 +96,7 @@ public class ConnectedDeviceDashboardFragment extends DashboardFragment {
|
||||
keys.add(NfcPreferenceController.KEY_TOGGLE_NFC);
|
||||
keys.add(NfcPreferenceController.KEY_ANDROID_BEAM_SETTINGS);
|
||||
}
|
||||
if (!pm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) {
|
||||
keys.add(BluetoothMasterSwitchPreferenceController.KEY_TOGGLE_BLUETOOTH);
|
||||
}
|
||||
keys.add(BluetoothMasterSwitchPreferenceController.KEY_TOGGLE_BLUETOOTH);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user