• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

修訂67a4f7bac877e7b793d5122a0cdf289722a4d0f4 (tree)
時間2019-07-12 04:10:09
作者Chienyuan <chienyuanhuang@goog...>
CommiterArjun Garg

Log Message

HidProfile: sync isPreferred() with HidHostService

HidHostService allow to connect when priority is PRIORITY_UNDEFINED.
HidProfile should return ture when priority is PRIORITY_UNDEFINED.
Otherwise, the "Input device" toggle in off state when HID device
connected.

Bug: 132456322
Test: manual
Change-Id: Id7bae694c57aec17e019d591c0a677e3cb64f845
(cherry picked from commit 830217f277e31e63d9ab8acd21ee2a8f81ee1c8f)

Change Summary

差異

--- 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 final class HidProfile implements LocalBluetoothProfile {
121121
122122 public boolean isPreferred(BluetoothDevice device) {
123123 if (mService == null) return false;
124- return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF;
124+ return mService.getPriority(device) != BluetoothProfile.PRIORITY_OFF;
125125 }
126126
127127 public int getPreferred(BluetoothDevice device) {