Remove unnecessary condition

The call forward timer is only valid for the CF_REASON_NO_REPLY reason,
and it will be 0 in other cases. Remove the condition to prevent disable
processing not working.

Bug: 194112447
Test: Build pass
Change-Id: I824a61383b595284ee5694fcd31e58e2379997fb
This commit is contained in:
Calvin Pan
2021-08-12 20:53:48 +08:00
parent c97269a900
commit 3bf80c66ff

View File

@@ -43,9 +43,8 @@ public class DisableSmartForwardingTask implements Runnable {
}
if (callForwardingInfo != null
&& callForwardingInfo[i] != null
&& callForwardingInfo[i].getTimeoutSeconds() > 0) {
Log.d(TAG, "Restore call waiting to " + callForwardingInfo);
&& callForwardingInfo[i] != null) {
Log.d(TAG, "Restore call forwarding to " + callForwardingInfo[i]);
tm.setCallForwarding(callForwardingInfo[i], null, null);
}
}