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

Commit cf39fe27 authored by Kihong Seong's avatar Kihong Seong
Browse files

Change comment description for BluetoothGatt#registerApp

Current comment description says BluetoothGattCallback#onAppRegistered
will be triggered if the function returns true. However, this is no
longer true and the function simply moves on to client connection on
successful registration. Thus changing the description accordingly.

Bug: 343628924
Test: m com.android.btservices
Flag: EXEMPT, comment fix only
Change-Id: I769078c20d5d339822a4a9ac7661bfd0a1bb62e1
parent 34195ca0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1072,8 +1072,8 @@ public final class BluetoothGatt implements BluetoothProfile {
    /**
     * Register an application callback to start using GATT.
     *
     * <p>This is an asynchronous call. The callback {@link BluetoothGattCallback#onAppRegistered}
     * is used to notify success or failure if the function returns true.
     * <p>This is an asynchronous call. If registration is successful, client connection will be
     * initiated.
     *
     * @param callback GATT callback handler that will receive asynchronous callbacks.
     * @return If true, the callback will be called to notify success or failure, false on immediate
@@ -1089,8 +1089,8 @@ public final class BluetoothGatt implements BluetoothProfile {
    /**
     * Register an application callback to start using GATT.
     *
     * <p>This is an asynchronous call. The callback {@link BluetoothGattCallback#onAppRegistered}
     * is used to notify success or failure if the function returns true.
     * <p>This is an asynchronous call. If registration is successful, client connection will be
     * initiated.
     *
     * @param callback GATT callback handler that will receive asynchronous callbacks.
     * @param eattSupport indicate to allow for eatt support