summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMingbo Zhang <mingboz@codeaurora.org>2020-04-10 17:29:51 +0800
committerMingbo Zhang <mingboz@codeaurora.org>2020-05-18 02:07:33 +0000
commitacc225d205c7ce40f7319005ab70f39a7e06a4a1 (patch)
treeb7e66ea91ab9ef8a9375b46364539ae6900d775f /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf1a5d4f2db87d8deed65def61bc7b3603d6387ff (diff)
BT: Don't allow isBleScanAlwaysAvailable API call for non foreground users
When a 3rd app with non-foreground user_id call enableBLE(), updateBleAppCount() will set mEnableBLE to true. But the following enable() call is returned false directly and mEnableBLE is not cleared because it is non-foreground user. As a result, the next bt turning-on will be stuck at ble on state. To fix it, return false directly in isBleScanAlwaysAvailable for non foreground users, then updateBleAppCount will not be called in enableBLE(). Change-Id: I77b9dc5ce922986e87dabb70b318a9a07048a659 CRs-Fixed: 2650659
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions