SunnyDong-xyd / Coriander

0 stars 0 forks source link

Review back button functionality. #6

Closed SunnyDong-xyd closed 3 years ago

SunnyDong-xyd commented 3 years ago

Currently, back button just goes back a fragment/activity whenever pressed. Navigation history is stored infinity in back stack. This is unnecessary as the user in most cases does not need to retrace their own steps through 20 activities/fragments.

Suggested change is to reset navigation history on navigating to the home screen. This way, the back button will only retrace fragment history until the user reaches the base of their current activity. Upon pressing the back button again, the user will return to the home screen.

Also consider behavior of the back button with no history.

SunnyDong-xyd commented 3 years ago

Closed. Should be automatically handled with fragments. See #10