Merge "Updating iccCloseLogicalChannel API"

This commit is contained in:
TreeHugger Robot
2022-02-10 08:56:00 +00:00
committed by Android (Google) Code Review

View File

@@ -7118,7 +7118,14 @@ public class TelephonyManager {
*/
@RequiresFeature(PackageManager.FEATURE_TELEPHONY_SUBSCRIPTION)
public boolean iccCloseLogicalChannel(int channel) {
return iccCloseLogicalChannel(getSubId(), 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;
}
/**