mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 986440: Check for |radioTech| in |voiceRegistrationState|, r=htsai
When starting up RIL, |radioTech| in |voiceRegistrationState| is not defined before we received REQUEST_VOICE_REGISTRATION_STATE. This patch adds an extra test to avoid the respective error message. --HG-- extra : rebase_source : 19927ec9a3892606d81f3209ea470ce297d927d7
This commit is contained in:
parent
21da4b0c37
commit
22ff293288
@ -3452,7 +3452,10 @@ RilObject.prototype = {
|
||||
}
|
||||
};
|
||||
|
||||
if (!this._isGsmTechGroup(this.voiceRegistrationState.radioTech)) {
|
||||
// During startup, |radioTech| is not yet defined, so we need to
|
||||
// check it separately.
|
||||
if (("radioTech" in this.voiceRegistrationState) &&
|
||||
!this._isGsmTechGroup(this.voiceRegistrationState.radioTech)) {
|
||||
// CDMA RSSI.
|
||||
// Valid values are positive integers. This value is the actual RSSI value
|
||||
// multiplied by -1. Example: If the actual RSSI is -75, then this
|
||||
|
Loading…
Reference in New Issue
Block a user