Need help integrating code wrote on Edittext to the Discourse

Now, the issue is that when you click the “Read Task” button, the timer starts at 1:30 and loops on 8:00.

1:30 > 8:00 > 8:00 > 8:00 ..

If you click the “Enter Room” button, the timer starts at 8:00 and loops on 1:30.

8:00 > 1:30 > 1:30 > 1:30 ..

Ideally, there should be a smooth, continuous loop alternating between 1:30 and 8:00, with the starting point determined by the button you click first.

For instance, if you click the “Read Task” button, the timer should start at 1:30 and then proceed in an alternating loop between 8:00 and 1:30:

1:30 > 8:00 > 1:30 > 8:00..

If you click the “Enter Room” button, the timer should start from 8:00 and follow an alternating loop between 1:30 and 8:00:

8:00 > 1:30 > 8:00 > 1:30..