Merge "CallManager: do not deliver ring event if fg call is live." into gingerbread

This commit is contained in:
Hung-ying Tyan
2010-08-17 17:34:05 -07:00
committed by Android (Google) Code Review

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);