LinearTimer
LinearTimer copied to clipboard
Update timer duration
Hi! How can I update/change timer duration after restart?
Hey.
At the moment there is no such feature which can let you update the duration upon restart. But, I have taken this as a feature request.
I'm not sure when I'll be releasing the next version but whenever I will, will try to incorporate this feature too.
Is this feature added or not ?
@CrazyCoderAndroid Unfortunately, no. I have not been working on this project for quite some time now. However, I'll try to take some time out and implement this.
can you give some idea about how to achieve this so that i can do it by myself ?
Sure.
Have a look at the LinearTimer
class; find the restartTimer()
method. Most of the logic resides in this class. You'll have to figure out how to set the new totalDuration
value and simultaneously change values of variables dependent on it.
You'll find all the details about LinearTimer in the wiki
If you manage to implement this, do send a pull request. I'll review it include it in the main code.
Please let me know if you need any more help.
Thanks i will try it.