Telecom: Reset the duration after the CDMA call is accepted
In android original design, the duration of CDMA MO call is started from the dial command sent, so it is not the real duration of the active time. In this patch, a new message is registered to listen the event of the call accepted, and then reset the duration when the event happens. Change-Id: Icc447012030ae243f200ec2c83b7d5210af9b31c
This commit is contained in:
@@ -254,6 +254,18 @@ final class ConnectionServiceAdapter implements DeathRecipient {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the cdma connection time.
|
||||
*/
|
||||
void resetConnectionTime(String callId) {
|
||||
for (IConnectionServiceAdapter adapter : mAdapters) {
|
||||
try {
|
||||
adapter.resetConnectionTime(callId, Log.getExternalSession());
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates that the call no longer exists. Can be used with either a call or a conference
|
||||
* call.
|
||||
|
||||
Reference in New Issue
Block a user