diff options
author | Etienne Ruffieux <eruffieux@google.com> | 2022-06-06 17:34:43 -0700 |
---|---|---|
committer | Etienne Ruffieux <eruffieux@google.com> | 2022-06-06 17:45:59 -0700 |
commit | 87e5ce2d1145387388a14f053c7e9f28d4b929ae (patch) | |
tree | cde73ed3a5f519dc71146e7ded0f6f507d0adbef /framework/java/android/bluetooth/BluetoothAdapter.java | |
parent | e3d987d906548bc980ca25b84b6af6d7fcc6c1f0 (diff) |
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
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothAdapter.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothAdapter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothAdapter.java b/framework/java/android/bluetooth/BluetoothAdapter.java index e4bfc42b86..0fdadf85eb 100644 --- a/framework/java/android/bluetooth/BluetoothAdapter.java +++ b/framework/java/android/bluetooth/BluetoothAdapter.java @@ -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 |