Merge "Pass SdkVersion to getNeighboringCellInfo" am: cec3f1fafb am: 8f4fdd4e78
am: 3193926e6a
Change-Id: I3ec768fffe72b6c8a476e549e94103dd71a17d62
This commit is contained in:
@@ -1553,7 +1553,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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user