Commit acc225d2 authored by Mingbo Zhang's avatar Mingbo Zhang
Browse files

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
parent f1a5d4f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment