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

Commit 8102cd46 authored by Brad Ebinger's avatar Brad Ebinger Committed by Gerrit Code Review
Browse files

Merge "Use instanceof check for CellLocation"

parents 0fee01f6 515f1ec2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1532,9 +1532,9 @@ public class GsmCdmaCallTracker extends CallTracker {
                    CellLocation loc = mPhone.getCellLocation();
                    CellLocation loc = mPhone.getCellLocation();
                    int cid = -1;
                    int cid = -1;
                    if (loc != null) {
                    if (loc != null) {
                        if (isPhoneTypeGsm()) {
                        if (loc instanceof GsmCellLocation) {
                            cid = ((GsmCellLocation)loc).getCid();
                            cid = ((GsmCellLocation)loc).getCid();
                        } else {
                        } else if (loc instanceof CdmaCellLocation) {
                            cid = ((CdmaCellLocation)loc).getBaseStationId();
                            cid = ((CdmaCellLocation)loc).getBaseStationId();
                        }
                        }
                    }
                    }