diff options
author | Amit Mahajan <amitmahajan@google.com> | 2014-10-10 14:41:44 -0700 |
---|---|---|
committer | Amit Mahajan <amitmahajan@google.com> | 2014-10-10 17:05:46 -0700 |
commit | b5c78682ad79be7b7c53cf8a8450ed485cf610e6 (patch) | |
tree | 35b5848da27d7d9af24665d038fca9a4f5b89851 /telephony | |
parent | 2c461def93f235d3a7853851ee125cb3caaf2955 (diff) | |
download | frameworks_base-b5c78682ad79be7b7c53cf8a8450ed485cf610e6.zip frameworks_base-b5c78682ad79be7b7c53cf8a8450ed485cf610e6.tar.gz frameworks_base-b5c78682ad79be7b7c53cf8a8450ed485cf610e6.tar.bz2 |
Fix to show low LTE signal strength as -140 instead of 0.
Bug: 17942583
Change-Id: I399e5352b4585cff42ee5c7dd164315c1797110a
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/SignalStrength.java | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ public class SignalStrength implements Parcelable { 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(); |