So far I have implemented the change suggested in #4865.
Some things I've noticed while working on this:
It seems like this could be a good use for the CountDownTimer util object since we could just create the object with retryTimeout and use timeLeft() to get the remaining time. This would simplify this code and make things more intuitive. The only issue is CountDownTimer only exists in 3.1 and above. If others agree, I could backport it into 2.1 and use it here.
Is it possible for the timeoutLeft value to be negative here? If so, what are the implications of that.
Partially Fixes #4865
So far I have implemented the change suggested in #4865.
Some things I've noticed while working on this:
retryTimeout
and usetimeLeft()
to get the remaining time. This would simplify this code and make things more intuitive. The only issue is CountDownTimer only exists in 3.1 and above. If others agree, I could backport it into 2.1 and use it here.timeoutLeft
value to be negative here? If so, what are the implications of that.