[automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b am: 2a547afdfa am: b36f88020e am: 60aad1a06f
am: 5f70ebf52c
Change-Id: Ia9fc627a9bb50eb2a6bb96ef83c38213b7b18f3d
This commit is contained in:
@@ -117,7 +117,7 @@ public 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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user