OSDN Git Service

HidProfile: sync isPreferred() with HidHostService
authorChienyuan <chienyuanhuang@google.com>
Tue, 9 Jul 2019 07:09:56 +0000 (15:09 +0800)
committerArjun Garg <arjgarg@google.com>
Thu, 11 Jul 2019 19:10:09 +0000 (12:10 -0700)
commit67a4f7bac877e7b793d5122a0cdf289722a4d0f4
treec06c1e14329f2f5dcd49126d1ea3f794f349db1c
parent114df4642694524969ca24749fc4cd81f91679fb
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)
packages/SettingsLib/src/com/android/settingslib/bluetooth/HidProfile.java