Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAngel Brambila
5,847 PointsQuestion about "Restart"
Well here's the deal, i thin it's really easy to fix it but i can't found the correct block of code i need to modify, when i click the restart button, it starts in 00:00, and then it goes
-1
-2
-3
(really funny actually) but . . . i try yo put in the AttemptKind.java and i check that
FOCUS(25* 60, "Focus Time"); BREAK(5 * 60, "Break Time");
i don't know wich block of code controls the time when i click Restart Button.
3 Answers
Angel Brambila
5,847 Pointshaha, forget it xD, i don't know why in the World i delete the assign in the Attempo constructor,
someway i delete mRemainingSeconds = kind.gettotalecods();
XD . . .sorry. its Solved.
Gi Devs
12,171 PointsI love the current bugs in the code. . . my timer has been going 10 seconds and I'm at -170
Nishay Madhani
15,456 PointsMy Timer does not tick at all
Manas Vijaywargiya
12,598 PointsManas Vijaywargiya
12,598 Pointswhich java file did u added that line of code?????