Use front flash instead of led notification

Post your questions and help other users.

Moderator: Martin

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Use front flash instead of led notification

Post by Desmanto » 26 Feb 2019 16:56

Depends on how you design the flow, the pause can mean other things. If you use periodic timer or Glovar DT method, then disabling the flow itself (after screen on) is to pause them, since the timer won't run. Then re-enable the flow after unlock finish (trigger user present) means to resume it. Since the timer start again after enabling. You probably need to add the exception too. Because if the flow is running and screen on, error will be produced immediately. So maybe it is better just to use the exception method, where you add sleep 10 seconds for the exception part and loop back to the script which create the flash.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Re: Use front flash instead of led notification

Post by wfrcrd » 27 Feb 2019 09:58

I've paused the blink process using the sleep action and it seems working, thanks a lot!

Post Reply