CallManager: do not deliver ring event if fg call is live.

Change-Id: If5b1bca1f09557a2ee4de9ba429d80a0393279a0
This commit is contained in:
Hung-ying Tyan
2010-08-17 17:52:34 +08:00
parent 1ce4394c77
commit 912e0f7d9e

View File

@@ -1288,7 +1288,10 @@ public final class CallManager {
mUnknownConnectionRegistrants.notifyRegistrants((AsyncResult) msg.obj);
break;
case EVENT_INCOMING_RING:
mIncomingRingRegistrants.notifyRegistrants((AsyncResult) msg.obj);
// The event may come from RIL who's not aware of an ongoing fg call
if (!hasActiveFgCall()) {
mIncomingRingRegistrants.notifyRegistrants((AsyncResult) msg.obj);
}
break;
case EVENT_RINGBACK_TONE:
mRingbackToneRegistrants.notifyRegistrants((AsyncResult) msg.obj);