LinearTimer icon indicating copy to clipboard operation
LinearTimer copied to clipboard

Update timer duration

Open jamacco94 opened this issue 6 years ago • 6 comments

Hi! How can I update/change timer duration after restart?

jamacco94 avatar May 09 '18 08:05 jamacco94

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.

krtkush avatar May 09 '18 16:05 krtkush

Is this feature added or not ?

CrazyCoderAndroid avatar Jun 16 '20 05:06 CrazyCoderAndroid

@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.

krtkush avatar Jun 16 '20 05:06 krtkush

can you give some idea about how to achieve this so that i can do it by myself ?

CrazyCoderAndroid avatar Jun 16 '20 05:06 CrazyCoderAndroid

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.

krtkush avatar Jun 16 '20 05:06 krtkush

Thanks i will try it.

CrazyCoderAndroid avatar Jun 16 '20 06:06 CrazyCoderAndroid