Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26b0cdad authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "SystemServer: keep gatt apps when scan disallowed" into main

parents efc22046 f54c6915
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -684,11 +684,14 @@ class BluetoothManagerService {
            return Unit.INSTANCE;
        }
        clearBleApps();

        if (!Flags.bleScanSettingDoesNotDisconnectIfBtOn()) {
            try {
                mAdapter.unregAllGattClient(mContext.getAttributionSource());
            } catch (RemoteException e) {
                Log.e(TAG, "onBleScanDisabled: unregAllGattClient failed", e);
            }
        }
        if (mState.oneOf(STATE_BLE_ON)) {
            Log.i(TAG, "onBleScanDisabled: Shutting down BLE_ON mode");
            bleOnToOff();