albu-razvan / Stario

Do more with Stario — the minimalist launcher for you.
https://play.google.com/store/apps/details?id=com.stario.launcher
GNU General Public License v3.0
44 stars 2 forks source link

Faulty intent reordering on ACTION_SCREEN_ON #24

Closed albu-razvan closed 2 months ago

albu-razvan commented 2 months ago

Describe the bug When turning on device's screen, Stario task is reordered to the front of the stack, moving the target foreground task to the back.

To Reproduce Steps to reproduce:

  1. Open any activity that belongs to another task (e.g. Camera application)
  2. Turn screen off (e.g. lock screen)
  3. Unlock device

Expected behaviour Receiver filtering Intent.ACTION_SCREEN_ON should only reorder if the "recents" screen is in foreground.

Additional context This further breaks shortcuts that include the power button clicks (e.g. double click power button to launch the camera) because Intent.ACTION_SCREEN_ON is sent after the second button click.

albu-razvan commented 2 months ago

Removed functionality due to the unreliability/possibility of identifying when the recents window is in foreground.