diff --git a/services/core/java/com/android/server/location/contexthub/ContextHubService.java b/services/core/java/com/android/server/location/contexthub/ContextHubService.java index 524b22ba29c40..7100ac8f0d9f6 100644 --- a/services/core/java/com/android/server/location/contexthub/ContextHubService.java +++ b/services/core/java/com/android/server/location/contexthub/ContextHubService.java @@ -1204,11 +1204,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); }