thehale / SimpleTimeTracker-WearOS

A fork of Simple Time Tracker with WearOS support. (Now integrated upstream)
GNU General Public License v3.0
14 stars 4 forks source link

Block "swiping backwards" to re-enter tag list #14

Closed thehale closed 7 months ago

thehale commented 8 months ago

After starting a new activity and choosing its tag, a user can "swipe back" on the activity list to return to the previous tag list.

This happens because the navigation pushes a new navigation stack frame when returning to the activities list. Thus, the "swipe back" clears that stack frame to return to the previous tag list.

The expected behavior of the "swipe back" gesture on the activity list is that the app closes (goes back to the previous screen offered by the operating system).

I presume the solution is to clear/reset that navigation stack when moving from the TagScreen to the ActivitiesScreen.