Activity detection when device locked
Posted: 24 Oct 2016 00:23
I have an app that triggers when I press both volume buttons at the same time. It shows a completely white screen and it increases the screen brightness to the highest level. I can do that even if the device is locked.
But I have a problem. I have configured Automagic to turn on screen filter at night so when I try to use that flashlight app, it can't increase the brightness level because the Screen Filter limits it. Therefore, I made a flow to detect when the white screen activity of that app have started and, in that case, Screen Filter is disbaled. Then, another flow detects when it finishes and enables the Screen Filter again.
It worked successfully when the device is unlocked. But when I try to enable the screen flashlight when my device is locked, Automagic can't detect that the activity has started. I need to enter to the notification tray so it can detect it. Then, it detects when the activity finishes perfectly.
What can I do to fix it? It's an OS problem or it is app's?
Sorry for my incomprehensible English.
But I have a problem. I have configured Automagic to turn on screen filter at night so when I try to use that flashlight app, it can't increase the brightness level because the Screen Filter limits it. Therefore, I made a flow to detect when the white screen activity of that app have started and, in that case, Screen Filter is disbaled. Then, another flow detects when it finishes and enables the Screen Filter again.
It worked successfully when the device is unlocked. But when I try to enable the screen flashlight when my device is locked, Automagic can't detect that the activity has started. I need to enter to the notification tray so it can detect it. Then, it detects when the activity finishes perfectly.
What can I do to fix it? It's an OS problem or it is app's?
Sorry for my incomprehensible English.