OSDN Git Service

HidProfile: sync isPreferred() with HidHostService
authorChienyuan <chienyuanhuang@google.com>
Tue, 9 Jul 2019 07:09:56 +0000 (15:09 +0800)
committerChienyuan <chienyuanhuang@google.com>
Tue, 9 Jul 2019 07:09:56 +0000 (15:09 +0800)
commit830217f277e31e63d9ab8acd21ee2a8f81ee1c8f
tree13741159565afc6a89229a8a34b3b0ad4cd5e3f7
parentbab818fd4cfc3bd0138ce5180e32a5087b4e0280
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
packages/SettingsLib/src/com/android/settingslib/bluetooth/HidProfile.java