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

Commit f30b45f8 authored by Zach Johnson's avatar Zach Johnson Committed by Gerrit Code Review
Browse files

Merge "Remove IBluetooth.sendConnectionStateChanged"

parents c5725410 c76738fb
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -1771,16 +1771,6 @@ public class AdapterService extends Service {
            return service.setSimAccessPermission(device, value);
        }

        @Override
        public void sendConnectionStateChange(BluetoothDevice device, int profile, int state,
                int prevState) {
            AdapterService service = getService();
            if (service == null) {
                return;
            }
            service.sendConnectionStateChange(device, profile, state, prevState);
        }

        @Override
        public IBluetoothSocketManager getSocketManager() {
            AdapterService service = getService();
@@ -2847,17 +2837,6 @@ public class AdapterService extends Service {
        return true;
    }

    void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) {
        // TODO(BT) permission check?
        // Since this is a binder call check if Bluetooth is on still
        if (getState() == BluetoothAdapter.STATE_OFF) {
            return;
        }

        mAdapterProperties.sendConnectionStateChange(device, profile, state, prevState);

    }

    IBluetoothSocketManager getSocketManager() {
        return IBluetoothSocketManager.Stub.asInterface(mBluetoothSocketManagerBinder);
    }