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

Commit 3892d058 authored by Nathan Harold's avatar Nathan Harold
Browse files

Pass SdkVersion to getNeighboringCellInfo

Bug: 62490173
Test: tested manually with SL4A (P and P+ SDK)
Change-Id: I65bae72ab8379f996486e7f4326eddf1b305658a
parent c14a4be7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1471,7 +1471,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();