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>
Mon, 22 Jul 2019 22:50:19 +0000 (15:50 -0700)
commitdaba8f835b9b10dfcd59e0885a02b587dc6113fe
tree1decf3f272481b0f6b4dec01267f44843ebbfc81
parentdd56d82cb4913ea93117133f45949717e9d98ecc
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