View Single Post
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#221
Originally Posted by jimthefly View Post
i found a error in the Time To Destination function. Then the time is more than a hour it only shows a "-" line and not the time. Then the time is less than a hour everthing is fine.
Ouch, you're right. Thanks for catching this bug.

I found that the return value of Units.getReadableTime(duration) can be in "hr:min" format. This confuses the if (readableDuration.value > 0) loop. Commenting out the sanity checking makes the time display correctly. Please verify this solution if you can, if it doesn't introduce new bug, then I think this is an easy fix and can be pushed to unstable patch.

Last edited by sony123; 2012-07-22 at 04:43.
 

The Following 4 Users Say Thank You to sony123 For This Useful Post: