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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user