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

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

Move SDK Check for getNeighboringCellInfo

am: cb1c5ad2

Change-Id: I5f840dfa0f002e3d1b43426840a38221f02a10c2
parents 1a73c07a cb1c5ad2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1593,8 +1593,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) {
+1 −1
Original line number Diff line number Diff line
@@ -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();