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

Commit 87e5ce2d 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
Ignore-AOSP-First: cherry-pick
Change-Id: I6469862134d398bba8e9c738eaba081dc3ee6d65
Merged-In: I770a00dd99abab967590d100607a8b1292dc0492
parent e3d987d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3364,7 +3364,7 @@ public final class BluetoothAdapter {
     * 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
     * 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}.
     *
     * @param name service name for SDP record