Merge "CallManager: do not deliver ring event if fg call is live." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
f6354aca3a
@@ -1288,7 +1288,10 @@ public final class CallManager {
|
|||||||
mUnknownConnectionRegistrants.notifyRegistrants((AsyncResult) msg.obj);
|
mUnknownConnectionRegistrants.notifyRegistrants((AsyncResult) msg.obj);
|
||||||
break;
|
break;
|
||||||
case EVENT_INCOMING_RING:
|
case EVENT_INCOMING_RING:
|
||||||
|
// The event may come from RIL who's not aware of an ongoing fg call
|
||||||
|
if (!hasActiveFgCall()) {
|
||||||
mIncomingRingRegistrants.notifyRegistrants((AsyncResult) msg.obj);
|
mIncomingRingRegistrants.notifyRegistrants((AsyncResult) msg.obj);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case EVENT_RINGBACK_TONE:
|
case EVENT_RINGBACK_TONE:
|
||||||
mRingbackToneRegistrants.notifyRegistrants((AsyncResult) msg.obj);
|
mRingbackToneRegistrants.notifyRegistrants((AsyncResult) msg.obj);
|
||||||
|
|||||||
Reference in New Issue
Block a user