Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update timer duration #31

Open
jamacco94 opened this issue May 9, 2018 · 6 comments
Open

Update timer duration #31

jamacco94 opened this issue May 9, 2018 · 6 comments
Assignees
Labels
Milestone

Comments

@jamacco94
Copy link

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

@krtkush
Copy link
Owner

krtkush commented May 9, 2018

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 krtkush closed this as completed May 9, 2018
@krtkush krtkush self-assigned this May 9, 2018
@krtkush krtkush added the Feature label May 9, 2018
@krtkush krtkush added this to the v3.0.0 milestone May 9, 2018
@krtkush krtkush reopened this May 9, 2018
@CrazyCoderAndroid
Copy link

Is this feature added or not ?

@krtkush
Copy link
Owner

krtkush commented Jun 16, 2020

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

@CrazyCoderAndroid
Copy link

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

@krtkush
Copy link
Owner

krtkush commented Jun 16, 2020

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.

@CrazyCoderAndroid
Copy link

Thanks i will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants