Merge "Reset callNetworkType and CallQuality after calls" am: 5819a3378d

am: dd0e480a7d

Change-Id: If8119dafb941ed449ab16a04702a42ee7ce74f84
This commit is contained in:
Jordan Liu
2019-03-06 16:10:13 -08:00
committed by android-build-merger

View File

@@ -1549,6 +1549,13 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
log("notifyPreciseCallState: mCallQuality is null, skipping call attributes");
notifyCallAttributes = false;
} else {
// If the precise call state is no longer active, reset the call network type and
// call quality.
if (mPreciseCallState.getForegroundCallState()
!= PreciseCallState.PRECISE_CALL_STATE_ACTIVE) {
mCallNetworkType = TelephonyManager.NETWORK_TYPE_UNKNOWN;
mCallQuality = new CallQuality();
}
mCallAttributes = new CallAttributes(mPreciseCallState, mCallNetworkType,
mCallQuality);
}