Page 1 of 1

Long Click on Tile

Posted: 15 Dec 2016 17:02
by colabi
Hi Martin
You think you could add an option to "Quick Settings Tile Selected" trigger to react on long press of tile?

Re: Long Click on Tile

Posted: 18 Dec 2016 21:46
by Martin
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

Re: Long Click on Tile

Posted: 19 Dec 2016 06:25
by bogdyro
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.

Re: Long Click on Tile

Posted: 20 Dec 2016 15:48
by Martin
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.

Re: Long Click on Tile

Posted: 21 Dec 2016 13:29
by colabi
:) 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.