Page 2 of 2

Re: android 8.1 add more than 5 quicksettings tiles ?

Posted: 18 May 2019 19:56
by Martin
There's no condition available yet.
You could use an action Script after each Show/Hide overlay action to set a global variable to true/false and then check the global variable using a condition Expression.

What exactly do you want to achieve with the condition? Do you want to see if one particular overlay of Automagic is visible or just if there are any overlays of Automagic are showing?
Android can temporarily hide overlays under certain conditions and an app is not informed about this (likely for security reasons) so the new condition would only check if an overlay is likely visible.

Regards,
Martin

Re: android 8.1 add more than 5 quicksettings tiles ?

Posted: 19 May 2019 08:03
by heliosone
ok I see.
I wanted to use the state to execute different actions depending if the overlay is visible or not.

One finger strike up in novalauncher hides the notification/quicksettingsmenu,yet when used without notifications visible,it goes back to the homescreen if used on another screen (via am-flow)
And now I wanted to use this gesture/am-flow to also hide my overlay widget ,and depending if its really visible => without also going back to the homescreen.

I was just curious if there was a way to determine the state of an overlay widget.
But as automagic is full of possibilities ,the global_variable way is a workaround that will do ,thanks !

Re: android 8.1 add more than 5 quicksettings tiles ?

Posted: 19 May 2019 16:02
by Desmanto
@Martin : We want to know at anytime, if certain overlay is being shown. Maybe Automagic can implement some hidden built-in variable which store the state of each widget overlay.
Basically when we use Show widget overlay action, the overlay state is toggled to "Shown" in the hidden variable. Vice vers when we use Aciton Hide Widget overlay, toggled to "Hidden".

The condition (example : "Overlay Shown") then check for this hidden variable and return true/false.
This way, we don't need extra script after the show/hide action.

Re: android 8.1 add more than 5 quicksettings tiles ?

Posted: 22 May 2019 19:08
by Martin
Automagic already tracks the shown/hide state internally so adding a condition should be simple. I add it to the todo list.