cagnulein / qdomyos-zwift

Zwift bridge for smart treadmills and bike/cyclette
https://www.qzfitness.com/
GNU General Public License v3.0
435 stars 118 forks source link

double back to close android app, ask before closing #1386

Open cagnulein opened 1 year ago

cagnulein commented 1 year ago

Discussed in https://github.com/cagnulein/qdomyos-zwift/discussions/1384

Originally posted by **rbbarbieri** March 29, 2023 Qdomyos-zwift on android closes as soon as I press the back button in the android navigation bar. When moving between screens it's easy to close the app this way and it will interrupt the recording session (luckily it saves the fit file). Some apps display a toast message saying something like "press back again to exit the app". Could this be reasonable?
cagnulein commented 1 year ago

@rbbarbieri done, i have to check that it's working but the code is in the 2.13.24 and above. reference: https://stackoverflow.com/questions/64317369/clicking-back-button-twice-to-exit-from-application-in-qml

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.