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

Commit 8f4fdd4e authored by Nathan Harold's avatar Nathan Harold Committed by android-build-merger
Browse files

Merge "Pass SdkVersion to getNeighboringCellInfo"

am: cec3f1fa

Change-Id: I46ede415a660852938506b9bd4eebff409da5929
parents 270e4bb2 cec3f1fa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1537,7 +1537,8 @@ public class TelephonyManager {
            ITelephony telephony = getITelephony();
            if (telephony == null)
                return null;
            return telephony.getNeighboringCellInfo(mContext.getOpPackageName());
            return telephony.getNeighboringCellInfo(mContext.getOpPackageName(),
                    mContext.getApplicationInfo().targetSdkVersion);
        } catch (RemoteException ex) {
            return null;
        } catch (NullPointerException ex) {
+1 −1
Original line number Diff line number Diff line
@@ -390,7 +390,7 @@ interface ITelephony {
    /**
     * Returns the neighboring cell information of the device.
     */
    List<NeighboringCellInfo> getNeighboringCellInfo(String callingPkg);
    List<NeighboringCellInfo> getNeighboringCellInfo(String callingPkg, int targetSdk);

     int getCallState();