Merge "Pass SdkVersion to getNeighboringCellInfo"

am: cec3f1fafb

Change-Id: I46ede415a660852938506b9bd4eebff409da5929
This commit is contained in:
Nathan Harold
2018-08-01 15:51:30 -07:00
committed by android-build-merger
2 changed files with 3 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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();