summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chienyuan <chienyuanhuang@google.com> 2019-07-09 23:16:40 -0700
committer android-build-merger <android-build-merger@google.com> 2019-07-09 23:16:40 -0700
commita65cfa6896d669236212802607e354c1a0e17991 (patch)
tree00b77cebc6a916cb7d3091656b1161221dfae402
parent3b0074ada62afdc8d396a6027ec8bb525e010a49 (diff)
parent7983c807d5501bf04a7a6b73bf09b864f7fdbd08 (diff)
[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 am: 991b628a09
am: 7983c807d5 Change-Id: I4f215cc3a3e71bc836fc28312a41525b3bc17e8a
-rw-r--r--packages/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 7f906f6c5b06..6d874ab2be9b 100644
--- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/HidProfile.java
+++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/HidProfile.java
@@ -117,7 +117,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) {