InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.64k stars 903 forks source link

Open battery app when charging #1876

Open KaffeinatedKat opened 9 months ago

KaffeinatedKat commented 9 months ago

This change makes the battery info app open upon putting the watch on the charger, if the current app is the clock (as to not close any app that might be running). If the watch is taken off the charger while the battery app is open, it returns to the clock.

This pr also removes the vibration while charging if the battery app is opened/closed, which should help prevent #724.

github-actions[bot] commented 9 months ago
Build size and comparison to main: Section Size Difference
text 376816B 16B
data 940B 0B
bss 63420B 0B
RageGamerBoi commented 7 months ago

This might be better as kind of popup, like a notification with that 5 second timeout.

vkareh commented 4 months ago

I've included this patchset as part of a larger configuration that allows auto-opening apps based on certain events: https://github.com/InfiniTimeOrg/InfiniTime/pull/2004/commits

This makes this feature optional/configurable.