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

Commit 515f1ec2 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Use instanceof check for CellLocation

Bug: 129650112
Test: atest FrameworksTelephonyTests
Change-Id: I8ada224f41d9a672f6a3a0c861194b8bdd08ba62
parent 0fee01f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1532,9 +1532,9 @@ public class GsmCdmaCallTracker extends CallTracker {
                    CellLocation loc = mPhone.getCellLocation();
                    int cid = -1;
                    if (loc != null) {
                        if (isPhoneTypeGsm()) {
                        if (loc instanceof GsmCellLocation) {
                            cid = ((GsmCellLocation)loc).getCid();
                        } else {
                        } else if (loc instanceof CdmaCellLocation) {
                            cid = ((CdmaCellLocation)loc).getBaseStationId();
                        }
                    }