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:
Open any activity that belongs to another task (e.g. Camera application)
Turn screen off (e.g. lock screen)
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.
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:
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.