Merge "NR is lower priority than all other signal strengths" into rvc-dev

This commit is contained in:
Rambo Wang
2020-03-27 23:38:16 +00:00
committed by Android (Google) Code Review

View File

@@ -188,12 +188,12 @@ public class SignalStrength implements Parcelable {
private CellSignalStrength getPrimary() {
// This behavior is intended to replicate the legacy behavior of getLevel() by prioritizing
// newer faster RATs for default/for display purposes.
if (mNr.isValid()) return mNr;
if (mLte.isValid()) return mLte;
if (mCdma.isValid()) return mCdma;
if (mTdscdma.isValid()) return mTdscdma;
if (mWcdma.isValid()) return mWcdma;
if (mGsm.isValid()) return mGsm;
if (mNr.isValid()) return mNr;
return mLte;
}