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

Commit 91081949 authored by Mengjie Xie's avatar Mengjie Xie Committed by Lin Lili
Browse files

Change Nci to CellInfo.UNAVAILABLE_LONG

Problem:
CellInfoTest#testCellInfo fail
Root cause:
In CellIdentityNr.sanitizeLocationInfo, Nci is set to CellInfo.UNAVAILABLE
But in test case, CellInfo.UNAVAILABLE_LONG is expected
Solution:
Change Nci to CellInfo.UNAVAILABLE_LONG in CellIdentityNr.sanitizeLocationInfo

Bug: 185446912
Test: CellInfoTest#testCellInfo can pass
Change-Id: Idd2566c51ab388c22d76b6d6f795faba4af60d05
parent 46001697
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ public final class CellIdentityNr extends CellIdentity {
    @Override
    public @NonNull CellIdentityNr sanitizeLocationInfo() {
        return new CellIdentityNr(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mNrArfcn,
                mBands, mMccStr, mMncStr, CellInfo.UNAVAILABLE, mAlphaLong, mAlphaShort,
                mBands, mMccStr, mMncStr, CellInfo.UNAVAILABLE_LONG, mAlphaLong, mAlphaShort,
                mAdditionalPlmns);
    }