Merge "NR is lower priority than all other signal strengths" into rvc-dev
This commit is contained in:
@@ -188,12 +188,12 @@ public class SignalStrength implements Parcelable {
|
|||||||
private CellSignalStrength getPrimary() {
|
private CellSignalStrength getPrimary() {
|
||||||
// This behavior is intended to replicate the legacy behavior of getLevel() by prioritizing
|
// This behavior is intended to replicate the legacy behavior of getLevel() by prioritizing
|
||||||
// newer faster RATs for default/for display purposes.
|
// newer faster RATs for default/for display purposes.
|
||||||
|
if (mNr.isValid()) return mNr;
|
||||||
if (mLte.isValid()) return mLte;
|
if (mLte.isValid()) return mLte;
|
||||||
if (mCdma.isValid()) return mCdma;
|
if (mCdma.isValid()) return mCdma;
|
||||||
if (mTdscdma.isValid()) return mTdscdma;
|
if (mTdscdma.isValid()) return mTdscdma;
|
||||||
if (mWcdma.isValid()) return mWcdma;
|
if (mWcdma.isValid()) return mWcdma;
|
||||||
if (mGsm.isValid()) return mGsm;
|
if (mGsm.isValid()) return mGsm;
|
||||||
if (mNr.isValid()) return mNr;
|
|
||||||
return mLte;
|
return mLte;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user