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

Commit fe76e80a authored by Rakesh Pallerla's avatar Rakesh Pallerla Committed by Ricardo Cerqueira
Browse files

Modify hasIccCard method definition.

Modify hasIccCard() definition to change slotId
type from long to int.

Change-Id: I1c978487d08c5507195d90ed46f813847fe093e2
parent 4a8a0f0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1395,7 +1395,7 @@ public class TelephonyManager {
     */
    /** {@hide} */
    // FIXME Input argument slotId should be of type int
    public boolean hasIccCard(long slotId) {
    public boolean hasIccCard(int slotId) {

        try {
            return getITelephony().hasIccCardUsingSlotId(slotId);
+1 −1
Original line number Diff line number Diff line
@@ -456,7 +456,7 @@ interface ITelephony {
     * @param slotId user preferred slotId.
     * Return true if an ICC card is present
     */
    boolean hasIccCardUsingSlotId(long slotId);
    boolean hasIccCardUsingSlotId(int slotId);

    /**
     * Return if the current radio is LTE on CDMA. This