android 8.1 add more than 5 quicksettings tiles ?

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: android 8.1 add more than 5 quicksettings tiles ?

Post by Martin » 18 May 2019 19:56

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

heliosone
Posts: 39
Joined: 26 Mar 2016 08:39

Re: android 8.1 add more than 5 quicksettings tiles ?

Post by heliosone » 19 May 2019 08:03

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 !

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

Re: android 8.1 add more than 5 quicksettings tiles ?

Post by Desmanto » 19 May 2019 16:02

@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.
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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: android 8.1 add more than 5 quicksettings tiles ?

Post by Martin » 22 May 2019 19:08

Automagic already tracks the shown/hide state internally so adding a condition should be simple. I add it to the todo list.

Locked