[v5.40.4]Bug - Floating trash button doesn't disappear with Floating Button macros

Xane_MM

New member
Hello! I have a bug to report.

Description
This bug has been in MacroDroid for many versions now, and isn't fixed as of the version installed on my phone, 5.40.4.

Normally, when you drag a floating button, a grey delete button appears at the bottom of the screen, and disappears when you let go of the button. However, this button will get stuck on the screen indefinitely if you use a macro to disable the floating button while you're still holding it.

Reproduction
To reproduce this bug:
  1. Make a floating button macro, which doesn't need to do anything when tapped.
  2. Make a second macro (triggered by holding a volume key or something easy to trigger) that enables the first macro, waits a couple seconds, then disables it.
  3. Trigger the second macro, then begin holding the floating button.
  4. Once the button vanishes, you now have a trash button on your screen that you can't tap through, which could make it hard to interact with other apps or use keyboards!
This bug can be fixed by restarting my phone, and probably could also be fixed by force closing MacroDroid, but that would probably make it spam notifications about its accessibility services being turned off (which is an issue in itself). Disabling MacroDroid using the switch in the app doesn't hide the trash button, either.

For an easy demonstration, import the attached category file, hold your volume up or down button for a second, then grab the green or red floating button. After they disappear, the stubborn trash button won't go away!

Screenshot
1000002908.png
 

Attachments

  • Delete_Button_Bug_Demonstration.category
    21.1 KB · Views: 2

Endercraft

Moderator (& bug finder :D)
I know this bug has existed for months with floating text and floating things but never reported it (why? who knows).
 
Top