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

Commit 2eeb1d85 authored by Henri Chataing's avatar Henri Chataing
Browse files

[ALPS08129411] variable should be proptected by synchronization



Signed-off-by: default avatarBlack Chen <black-ch.chen@mediatek.com>
Feature: BT HOST SW

Bug: 328841030
Fix: 328841030
Test: m com.android.btservices
Flag: EXEMPT, minor bugfix
Change-Id: I53cbde97e0a1d236e74dc959abebdecd25c39131
parent e2bad5e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -234,7 +234,7 @@ public class TbsGeneric {
     *
     * @param device device for which authorization is changed
     */
    public void onDeviceAuthorizationSet(BluetoothDevice device) {
    public synchronized void onDeviceAuthorizationSet(BluetoothDevice device) {
        // Notify TBS GATT service instance in case of pending operations
        if (mTbsGatt != null) {
            mTbsGatt.onDeviceAuthorizationSet(device);