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

Change-Id: Id1233680c478ff3367d69375056dd5d0bc1867ff
This commit is contained in:
Android Build Merger (Role)
2019-07-09 07:11:53 +00:00

View File

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