by Alexander Mlynski
Version 2 (March 1, 2025)
Download (11 downloads)
This flow uses a Quick Settings tile to set the display timeout.
A short press toggles between short and long timeout.
A long press displays a list to pick a pre-defined timeout value. Pressing Cancel on that list will show an input dialog allowing an arbitrary value.
If the new value is 1min or less, this will be the new short timeout of the toggle switch, if it is larger, it will be the new long timeout.
The subtitle of the tile shows the current timeout.
The state of the tile is active if the current timeout is longer than 1 minute, and inactive if it is not.
With inspiration from QS tile example "Quick Settings Tile" by Patrick Corgan.
By Alexander Mlynski
𝗡𝗼𝘁𝗲 (by Patrick Corgan)
The QS tiles weren't officially supported until Android 7 or CyanogenMod 12.1, but may work with Android 6 (see QS tile block documentation). This feature may not work on all devices. Finally, make sure you have a QS tile set up and unused.
Changelog
Version 2
Long press: if current value is not contained in original list, append it.