Always send BT settings on boot
Bug: 238187621 Test: Verify settings can get propagated on boot Change-Id: I5d25f21b9d3acf8bf07c46a96834d27618dbbf75
This commit is contained in:
@@ -1183,11 +1183,11 @@ public class ContextHubService extends IContextHubService.Stub {
|
||||
}
|
||||
} else {
|
||||
Log.d(TAG, "BT adapter not available. Defaulting to disabled");
|
||||
if (mIsBtMainEnabled) {
|
||||
if (forceUpdate || mIsBtMainEnabled) {
|
||||
mIsBtMainEnabled = false;
|
||||
mContextHubWrapper.onBtMainSettingChanged(mIsBtMainEnabled);
|
||||
}
|
||||
if (mIsBtScanningEnabled) {
|
||||
if (forceUpdate || mIsBtScanningEnabled) {
|
||||
mIsBtScanningEnabled = false;
|
||||
mContextHubWrapper.onBtScanningSettingChanged(mIsBtScanningEnabled);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user