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

Commit 88975399 authored by Prerepa Viswanadham's avatar Prerepa Viswanadham Committed by Android Git Automerger
Browse files

am 85f7b1ae: am 82953562: Return right connection status when connection failed

* commit '85f7b1ae':
  Return right connection status when connection failed
parents 291e5e7f 85f7b1ae
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -645,7 +645,8 @@ public class GattService extends ProfileService {
        if (status == 0) mClientMap.addConnection(clientIf, connId, address);
        ClientMap.App app = mClientMap.getById(clientIf);
        if (app != null) {
            app.callback.onClientConnectionState(status, clientIf, true, address);
            app.callback.onClientConnectionState(status, clientIf,
                                (status==BluetoothGatt.GATT_SUCCESS), address);
        }
    }