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

Commit e38fd07f authored by sandeepjs's avatar sandeepjs
Browse files

Updating iccCloseLogicalChannel API

Updating iccCloseLogicalChannel API to catch exceptions.

Test: atest android.carrierapi.cts.CarrierApiTest#testIccCloseLogicalChannel
Bug: 213898262
Change-Id: I6267518c94a111df1924c8a74dcd5c3561674e70
parent 1a6f762f
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -7118,7 +7118,14 @@ public class TelephonyManager {
     */
    @RequiresFeature(PackageManager.FEATURE_TELEPHONY_SUBSCRIPTION)
    public boolean iccCloseLogicalChannel(int channel) {
        try {
            return iccCloseLogicalChannel(getSubId(), channel);
        } catch (IllegalStateException ex) {
            Rlog.e(TAG, "iccCloseLogicalChannel IllegalStateException", ex);
        } catch (IllegalArgumentException ex) {
            Rlog.e(TAG, "iccCloseLogicalChannel IllegalArgumentException", ex);
        }
        return false;
    }
    /**