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

Commit d97e647e authored by jhtop.kim's avatar jhtop.kim Committed by Jaikumar Ganesh
Browse files

Bluetooth : fix for pbap ANR while BT on/off

Don't wait to start the listener.

Change-Id: I257332bc38a25b3ca772267a974b4280a8074c40
parent b2594e9c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -130,7 +130,6 @@ public class BluetoothPbapService extends Service {

    private static final int USER_CONFIRM_TIMEOUT_VALUE = 30000;

    private static final int TIME_TO_WAIT_VALUE = 6000;

    // Ensure not conflict with Opp notification ID
    private static final int NOTIFICATION_ID_ACCESS = -1000001;
@@ -201,8 +200,8 @@ public class BluetoothPbapService extends Service {

            int state = mAdapter.getState();
            if (state == BluetoothAdapter.STATE_ON) {
                mSessionStatusHandler.sendMessageDelayed(mSessionStatusHandler
                        .obtainMessage(START_LISTENER), TIME_TO_WAIT_VALUE);
                mSessionStatusHandler.sendMessage(mSessionStatusHandler
                        .obtainMessage(START_LISTENER));
            }
        }
    }