[Labs] Rules

Hello! I have configured rules to turn on/off screen as in the examples (tablet - Galaxy Note 8.0 (n5100)). Stay Awake is enabled, but it works for ~ 2-3 sec after the screen turns off. After - the screen flashes and then goes out.
Battery optimization is disabled in the tablet settings.

Hi, I have a problem with the “hide camera” rule. The “show camera” rule does two things:

  1. opens new window
  2. shows camera preview in this new window.

The “hide camera” rule stops the camera preview but it doesn’t close the window. It looks like on the attached picture.
Screenshot_20230626_132308_HomeHabit|690x310

How to close it automatically?