Button disabled that acts

220
Consider this sequence:

  1. I disable a Button
  2. I activate a 5-second clock
  3. I press the Button during the 5 seconds
  4. The 5 seconds expire
  5. The app executes the blocks of the pressed Button.
    But wasn't it disabled?

Show your relevant blocks.

What I wrote above was running in Companion.
I tried with the APK and it worked as it should.
I tried again in Companion and, without changing anything, it works there too.
If it happens again, I'll let you know.
Thanks

When the companion disconnects, the companion continues to function normally but the changes made on the browser are not applied to the companion, and this may explain what you have reported.
Setting a longer period before phone goes to standby helps.

You must handle the variable and clock timer among with if then else statement must be in good hand.

And should clock timer finally must be set to false once timer was over. And this gobal variable must be read everytime the action button clicked.