Move SDK Check for getNeighboringCellInfo am: cb1c5ad25d
am: cd3d9a5ba9
Change-Id: I2226bcddceed70ab2b2328a42e7e0f1238017f88
This commit is contained in:
@@ -1619,8 +1619,7 @@ public class TelephonyManager {
|
||||
ITelephony telephony = getITelephony();
|
||||
if (telephony == null)
|
||||
return null;
|
||||
return telephony.getNeighboringCellInfo(mContext.getOpPackageName(),
|
||||
mContext.getApplicationInfo().targetSdkVersion);
|
||||
return telephony.getNeighboringCellInfo(mContext.getOpPackageName());
|
||||
} catch (RemoteException ex) {
|
||||
return null;
|
||||
} catch (NullPointerException ex) {
|
||||
|
||||
@@ -280,7 +280,7 @@ interface ITelephony {
|
||||
/**
|
||||
* Returns the neighboring cell information of the device.
|
||||
*/
|
||||
List<NeighboringCellInfo> getNeighboringCellInfo(String callingPkg, int targetSdk);
|
||||
List<NeighboringCellInfo> getNeighboringCellInfo(String callingPkg);
|
||||
|
||||
int getCallState();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user