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

Commit fcf06e22 authored by Calvin Pan's avatar Calvin Pan Committed by Android (Google) Code Review
Browse files

Merge "Check the timeout only the reason is CF_REASON_NO_REPLY" into sc-qpr1-dev

parents ae5181cd f7e9afbe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -14302,7 +14302,8 @@ public class TelephonyManager {
            if (callForwardingInfo.getNumber() == null) {
                throw new IllegalArgumentException("callForwarding number is null");
            }
            if (callForwardingInfo.getTimeoutSeconds() <= 0) {
            if (callForwardingReason == CallForwardingInfo.REASON_NO_REPLY
                        && callForwardingInfo.getTimeoutSeconds() <= 0) {
                throw new IllegalArgumentException("callForwarding timeout isn't positive");
            }
        }