# Need help integrating code wrote on Edittext to the Discourse

**URL:** <https://meta.discourse.org/t/need-help-integrating-code-wrote-on-edittext-to-the-discourse/285204>\
**Category:** Development\
**Created:** [November 11, 2023, 8:05pm UTC](https://meta.discourse.org/t/need-help-integrating-code-wrote-on-edittext-to-the-discourse/285204 "2023-11-11T20:05:13Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Plabforum](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/plabforum/32/449551_2.png) [@Plabforum](https://meta.discourse.org/u/Plabforum)\
**Post date:** [November 13, 2023, 4:44am UTC](https://meta.discourse.org/t/need-help-integrating-code-wrote-on-edittext-to-the-discourse/285204/13 "2023-11-13T04:44:02Z")

</div>

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

---

_[View the full topic](https://meta.discourse.org/t/need-help-integrating-code-wrote-on-edittext-to-the-discourse/285204)._
