This app is an widget for preventing device from sleep.
Upper right button switches between "At any time"(red) and "If connected"(green), lower right button switches between "may be dimmed"(orange) and "with full brightness"(purple), and left button is app's I/O.
If you turn on with "At any time", your device won't sleep unless you lock. If you turn on with "If connected", app works only when your device is connected to power.
If you turn on with "may be dimmed", screen may be dimmed by device automatically(but won't be locked).
Attention:
App will be killed when rebooting the device or updating the app. Tap left switch twice, app will start working again.
After updating to 2.0.1+, app will auto-restart on rebooting the device or updating the app.
Android 12+ restrict apps not to do something in background. So it takes 5~10 sec to turn on after your tap.
Furthermore, after updating to 2.1.0+, "If connected" option will be removed by default.
If you "If connected" option, please turn off "Battery optimization" of the app.
(On 2.1.0+, tapping this app's notification will ask you to turn off "Battery optimization")