Notification Panel action

Post your questions and help other users.

Moderator: Martin

Post Reply
jmckeejr
Posts: 34
Joined: 03 May 2015 12:29

Notification Panel action

Post by jmckeejr » 10 Jul 2017 13:07

Hi, I know that I can open notification Panel with control UI "notifications()", but is there a way to have condition "notification Panel open" so I can have a button dedicated to open and close? I have tried execution count but if I choose the panel manually it throws off the count and I am using a gesture to close panel so when it's already closed it presses a button or performs an action on whatever screen I'm on (same with script back() ). I either need condition notification Panel open or is there a different variable for notifications (x)?

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

Re: Notification Panel action

Post by Martin » 11 Jul 2017 20:41

You could try to use action Control UI to see if one of the buttons of the notification panel is showing (something like existsElementById("com.android.systemui:id/expand_indicator"), but this is highly ROM and Android version dependent so it's unlikely to work as is on your device...)

Regards,
Martin

Post Reply