[automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b

am: 2a547afdfa

Change-Id: I0ec4664b3654fb0b8397a89b8948183413d7d522
This commit is contained in:
Chienyuan
2019-07-09 21:47:21 -07:00
committed by android-build-merger

View File

@@ -121,7 +121,7 @@ public class HidProfile implements LocalBluetoothProfile {
public boolean isPreferred(BluetoothDevice device) {
if (mService == null) return false;
return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF;
return mService.getPriority(device) != BluetoothProfile.PRIORITY_OFF;
}
public int getPreferred(BluetoothDevice device) {