Merge "Check the timeout only the reason is CF_REASON_NO_REPLY" into sc-qpr1-dev am: fcf06e22b7 am: 56754f7031
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15808956 Change-Id: Id4dd10573a5dc683792af74ead86513b2e3eae12
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user