diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsProfilesControllerTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsProfilesControllerTest.java index 57fd86b25d5..96378843e8a 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsProfilesControllerTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsProfilesControllerTest.java @@ -143,7 +143,8 @@ public class BluetoothDetailsProfilesControllerTest extends BluetoothDetailsCont @Override public int getPreferred(BluetoothDevice device) { return isPreferred(device) ? - BluetoothProfile.PRIORITY_ON : BluetoothProfile.PRIORITY_OFF; + BluetoothProfile.CONNECTION_POLICY_ALLOWED + : BluetoothProfile.CONNECTION_POLICY_FORBIDDEN; } @Override