Bug 828118 - Patch 1: Failed to answer a phone call when bluetooth headset quickly send out ATA message, r=qdot

This commit is contained in:
Gina Yeh 2013-01-09 17:37:08 +08:00
parent 5d014c7f62
commit c3a150b672

View File

@ -983,8 +983,10 @@ BluetoothHfpManager::SetupCIND(int aCallIndex, int aCallState,
sStopSendingRingFlag = false;
if (!mCLIP) {
MessageLoop::current()->PostTask(FROM_HERE,
new SendRingIndicatorTask(""));
MessageLoop::current()->
PostDelayedTask(FROM_HERE,
new SendRingIndicatorTask(""),
sRingInterval);
} else {
// Same logic as implementation in ril_worker.js
int type = TOA_UNKNOWN;
@ -993,8 +995,10 @@ BluetoothHfpManager::SetupCIND(int aCallIndex, int aCallState,
type = TOA_INTERNATIONAL;
}
MessageLoop::current()->PostTask(FROM_HERE,
new SendRingIndicatorTask(aNumber, type));
MessageLoop::current()->
PostDelayedTask(FROM_HERE,
new SendRingIndicatorTask(aNumber, type),
sRingInterval);
}
}
break;