summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chienyuan <chienyuanhuang@google.com> 2019-07-09 21:47:21 -0700
committer android-build-merger <android-build-merger@google.com> 2019-07-09 21:47:21 -0700
commitb36f88020eed8446b7fa8f50d5fecd5f195cbdbc (patch)
treec57a506f007f42ddb72a71a5aac714097d508eae
parentb3326d2ceb918d99874303a5f0a6d024ae257ba6 (diff)
parent2a547afdfa1115bbc1b656a38f20ea138920d63f (diff)
[automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b
am: 2a547afdfa Change-Id: I0ec4664b3654fb0b8397a89b8948183413d7d522
-rwxr-xr-xpackages/SettingsLib/src/com/android/settingslib/bluetooth/HidProfile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/HidProfile.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/HidProfile.java
index d1621da09a6c..1bb413988bae 100755
--- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/HidProfile.java
+++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/HidProfile.java
@@ -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) {