Merge "Merge "Reset callNetworkType and CallQuality after calls" am: 5819a3378d am: dd0e480a7d am: e7e95b6967"
This commit is contained in:
committed by
Android (Google) Code Review
commit
756bbab5d0
@@ -1551,6 +1551,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user