commit | b5c78682ad79be7b7c53cf8a8450ed485cf610e6 | [log] [tgz] |
---|---|---|
author | Amit Mahajan <amitmahajan@google.com> | Fri Oct 10 14:41:44 2014 -0700 |
committer | Amit Mahajan <amitmahajan@google.com> | Fri Oct 10 17:05:46 2014 -0700 |
tree | 35b5848da27d7d9af24665d038fca9a4f5b89851 | |
parent | 2c461def93f235d3a7853851ee125cb3caaf2955 [diff] |
Fix to show low LTE signal strength as -140 instead of 0. Bug: 17942583 Change-Id: I399e5352b4585cff42ee5c7dd164315c1797110a
diff --git a/telephony/java/android/telephony/SignalStrength.java b/telephony/java/android/telephony/SignalStrength.java index 7b9cf4e..3363ca6 100644 --- a/telephony/java/android/telephony/SignalStrength.java +++ b/telephony/java/android/telephony/SignalStrength.java
@@ -533,10 +533,9 @@ int dBm; if(isGsm()) { - if (getLteLevel() == SIGNAL_STRENGTH_NONE_OR_UNKNOWN) { + dBm = getLteDbm(); + if (dBm == INVALID) { dBm = getGsmDbm(); - } else { - dBm = getLteDbm(); } } else { int cdmaDbm = getCdmaDbm();