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

Commit ec32bf3f authored by Etienne Ruffieux's avatar Etienne Ruffieux
Browse files

Modify incorrect API documentation

BluetoothAdapter#listenUsingInsecureRfcommWithServiceRecord
description was stating user should call
BluetoothDevice#createRfcommSocketToServiceRecord to
connect, but user should use
BluetoothDevice#createInsecureRfcommSocketToServiceRecord
instead

Tag: #feature
Test: build
Bug: 235047894
Change-Id: I770a00dd99abab967590d100607a8b1292dc0492
parent 53fe426f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3365,7 +3365,7 @@ public final class BluetoothAdapter {
     * can use the same UUID to query our SDP server and discover which channel
     * can use the same UUID to query our SDP server and discover which channel
     * to connect to. This SDP record will be removed when this socket is
     * to connect to. This SDP record will be removed when this socket is
     * closed, or if this application closes unexpectedly.
     * closed, or if this application closes unexpectedly.
     * <p>Use {@link BluetoothDevice#createRfcommSocketToServiceRecord} to
     * <p>Use {@link BluetoothDevice#createInsecureRfcommSocketToServiceRecord} to
     * connect to this socket from another device using the same {@link UUID}.
     * connect to this socket from another device using the same {@link UUID}.
     *
     *
     * @param name service name for SDP record
     * @param name service name for SDP record