Post
by Desmanto » 01 Sep 2019 13:50
It can be done using condition execution count. You can't connect both to condition to the expression in this logic. Because if both are false, then both will execute that expression, so it will be executed twice. It can cause havoc or logical flaw if the element after it all got executed twice. (Launch app should be safe, but others might not).
Replace the condition expression with condition execution count, set to 2 and timed 100 ms. So if both evaluated to false, this execution will be executed twice in a very short time, ending up in true. Then continue to launch app.
If any of the other is true, then the execution count only executed once. Since it timeout after 100 ms (very short time), the counter is resetted again at next execution. Execution count used in this way, act as a buffer to collect multiple condition checking. You can add more condition before it, and simply increase the count for the total number of the check. So if you check for 5 location, use count 5.
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.