Long Click on Tile

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

Moderator: Martin

Locked
colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Long Click on Tile

Post by colabi » 15 Dec 2016 17:02

Hi Martin
You think you could add an option to "Quick Settings Tile Selected" trigger to react on long press of tile?

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

Re: Long Click on Tile

Post by Martin » 18 Dec 2016 21:46

The API provided by Google only allows to handle regular clicks but no long clicks. Maybe it's some kind of security mechanism so that a long click always jumps to the app info page of the app.

Regards,
Martin

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Long Click on Tile

Post by bogdyro » 19 Dec 2016 06:25

Martin, I believe that you are talking about clicking a notification. With quick tiles long pressing takes you to the settings screen. In CM13 you can create your own custom tiles. It never worked for me tgough when I was on cm13 ROM.

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

Re: Long Click on Tile

Post by Martin » 20 Dec 2016 15:48

I'm confused :-) I was talking about custom quick settings tiles on stock Android 7. Long-clicking a tile takes you to the app info page (at least on the Google 7.1 ROM I'm using right now).
The CM API for QS tiles allows to handle long clicks so an extension for CM ROMs would theoretically be possible.

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Long Click on Tile

Post by colabi » 21 Dec 2016 13:29

:) I am the OP and I was talking about long-click on AM quick settings tiles on stock Android 7.1.
In Android 6, we can create custom tiles with "Send Broadcast" action and set extra: putString("onLongClickUri", "intent:#Intent;action=automagic.MyTile1Longclick;end").
I thought that was possible to implement something similar for 7.1.

Thanks.

Locked