Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 758cb8c2 authored by Jordan Liu's avatar Jordan Liu Committed by android-build-merger
Browse files

Merge "Merge "Fix mLteSignalStrength range check" am: fbf9d61b am:...

Merge "Merge "Fix mLteSignalStrength range check" am: fbf9d61b am: 9b11677a" into pi-dev-plus-aosp
am: f667ce85

Change-Id: Ie4284357d4154692fb914486cace63b1cb56928f
parents 7046fc06 f667ce85
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -911,11 +911,8 @@ public class SignalStrength implements Parcelable {

        if (rsrpIconLevel != -1) return rsrpIconLevel;

        /* Valid values are (0-63, 99) as defined in TS 36.331 */
        // TODO the range here is probably supposed to be (0..31, 99). It's unclear if anyone relies
        // on the current incorrect range check, so this will be fixed in a future release with more
        // soak time
        if (mLteSignalStrength > 63) rssiIconLevel = SIGNAL_STRENGTH_NONE_OR_UNKNOWN;
        /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */
        if (mLteSignalStrength > 31) rssiIconLevel = SIGNAL_STRENGTH_NONE_OR_UNKNOWN;
        else if (mLteSignalStrength >= 12) rssiIconLevel = SIGNAL_STRENGTH_GREAT;
        else if (mLteSignalStrength >= 8) rssiIconLevel = SIGNAL_STRENGTH_GOOD;
        else if (mLteSignalStrength >= 5) rssiIconLevel = SIGNAL_STRENGTH_MODERATE;